summaryrefslogtreecommitdiff
path: root/tests/unistr/test-u16-strstr.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-10-20 15:21:43 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-10-20 15:21:43 +0200
commit4682deeb62247d34de87f8e777f99e2d337fd377 (patch)
tree5bd5b5605b5f3a4b3c8ea7468c34c23094afdef4 /tests/unistr/test-u16-strstr.c
parent00893e79fc62966067af1a106567db96bd170338 (diff)
New upstream version 1.3upstream/1.3upstream
Diffstat (limited to 'tests/unistr/test-u16-strstr.c')
-rw-r--r--tests/unistr/test-u16-strstr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unistr/test-u16-strstr.c b/tests/unistr/test-u16-strstr.c
index 4906a96f..d74cddc0 100644
--- a/tests/unistr/test-u16-strstr.c
+++ b/tests/unistr/test-u16-strstr.c
@@ -38,11 +38,12 @@ main (void)
#if HAVE_DECL_ALARM
/* Declare failure if test takes too long, by using default abort
caused by SIGALRM. */
+ int alarm_value = 50;
signal (SIGALRM, SIG_DFL);
- alarm (10);
+ alarm (alarm_value);
#endif
test_u_strstr ();
- return 0;
+ return test_exit_status;
}