summaryrefslogtreecommitdiff
path: root/tests/unistr/test-u16-strstr.c
diff options
context:
space:
mode:
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;
}