* 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.
/* Test of u16_strstr() function.
- Copyright (C) 2011-2023 Free Software Foundation, Inc.
+ Copyright (C) 2011-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#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 ();
/* Test of u32_strstr() function.
- Copyright (C) 2011-2023 Free Software Foundation, Inc.
+ Copyright (C) 2011-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#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 ();
/* Test of u8_strstr() function.
- Copyright (C) 2011-2023 Free Software Foundation, Inc.
+ Copyright (C) 2011-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
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 ();