* tests/unistr/test-u8-strstr.c (main): Increase timeout to 50 sec.
* tests/unistr/test-u16-strstr.c (main): Likewise.
* tests/unistr/test-u32-strstr.c (main): Likewise.
+2024-05-09 Bruno Haible <bruno@clisp.org>
+
+ unistr/u8-strstr tests: Avoid test failure with ASAN.
+ * tests/unistr/test-u8-strstr.c (main): Increase timeout to 50 sec.
+ * tests/unistr/test-u16-strstr.c (main): Likewise.
+ * tests/unistr/test-u32-strstr.c (main): Likewise.
+
2024-05-09 Bruno Haible <bruno@clisp.org>
free tests: Avoid test failure with ASAN.
#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 ();
#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 ();
case, we're assuming that we're running this test on the
same system that we did the check to ensure it has linear
performance characteristics. */
+ int alarm_value = 50;
signal (SIGALRM, SIG_DFL);
- alarm (5);
+ alarm (alarm_value);
#endif
test_u_strstr ();