]> Savannah Git Hosting - gnulib.git/commitdiff
u{16,32}-strstr-tests: relax timeout condition
authorDaiki Ueno <ueno@gnu.org>
Thu, 2 Jul 2015 07:48:24 +0000 (16:48 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 2 Jul 2015 07:56:02 +0000 (16:56 +0900)
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
tests/unistr/test-u16-strstr.c
tests/unistr/test-u32-strstr.c

index 5cab00b876fd3fcb411acb2ad3d811720a94769d..e6992f4465e1243670267def20f2228ee5fac4ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2015-07-02  Daiki Ueno  <ueno@gnu.org>
+
+       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  <praiskup@redhat.com>
 
        gnulib-common.m4: change the ARFLAGS default to 'cr'
index eb1f867aa0603bfd8687e3d91cb31c984f923a11..8f0f4f159ff79f95332a8443081314572c5bcf41 100644 (file)
@@ -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 ();
index 35eed85a193b69a8510751be3dd02c472f4e5e2b..c291b3c43eadde20e182b9d7b5ac4c638863241a 100644 (file)
@@ -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 ();