From ea309033903c2ca235eb47a61905dc2cec7d39bb Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 2 Jul 2015 16:48:24 +0900 Subject: [PATCH] u{16,32}-strstr-tests: relax timeout condition On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr tests can take longer than 5 seconds to complete. Reported by Dagobert Michelsen in: https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5 seconds to 10 seconds. * tests/unistr/test-u32-strstr.c (main): Likewise. --- ChangeLog | 11 +++++++++++ tests/unistr/test-u16-strstr.c | 2 +- tests/unistr/test-u32-strstr.c | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5cab00b876..e6992f4465 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2015-07-02 Daiki Ueno + + u{16,32}-strstr-tests: relax timeout condition + On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr + tests can take longer than 5 seconds to complete. + Reported by Dagobert Michelsen in: + https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html + * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5 + seconds to 10 seconds. + * tests/unistr/test-u32-strstr.c (main): Likewise. + 2015-07-01 Pavel Raiskup gnulib-common.m4: change the ARFLAGS default to 'cr' diff --git a/tests/unistr/test-u16-strstr.c b/tests/unistr/test-u16-strstr.c index eb1f867aa0..8f0f4f159f 100644 --- a/tests/unistr/test-u16-strstr.c +++ b/tests/unistr/test-u16-strstr.c @@ -38,7 +38,7 @@ main (void) /* Declare failure if test takes too long, by using default abort caused by SIGALRM. */ signal (SIGALRM, SIG_DFL); - alarm (5); + alarm (10); #endif test_u_strstr (); diff --git a/tests/unistr/test-u32-strstr.c b/tests/unistr/test-u32-strstr.c index 35eed85a19..c291b3c43e 100644 --- a/tests/unistr/test-u32-strstr.c +++ b/tests/unistr/test-u32-strstr.c @@ -38,7 +38,7 @@ main (void) /* Declare failure if test takes too long, by using default abort caused by SIGALRM. */ signal (SIGALRM, SIG_DFL); - alarm (5); + alarm (10); #endif test_u_strstr (); -- 2.39.5