changeset 18040:c0bf512e0e48

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.
author Daiki Ueno <ueno@gnu.org>
date Thu, 02 Jul 2015 16:48:24 +0900
parents e6e2e554257c
children 07ede17141c2
files ChangeLog tests/unistr/test-u16-strstr.c tests/unistr/test-u32-strstr.c
diffstat 3 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jul 01 09:38:35 2015 +0200
+++ b/ChangeLog	Thu Jul 02 16:48:24 2015 +0900
@@ -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'
--- a/tests/unistr/test-u16-strstr.c	Wed Jul 01 09:38:35 2015 +0200
+++ b/tests/unistr/test-u16-strstr.c	Thu Jul 02 16:48:24 2015 +0900
@@ -38,7 +38,7 @@
   /* 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 ();
--- a/tests/unistr/test-u32-strstr.c	Wed Jul 01 09:38:35 2015 +0200
+++ b/tests/unistr/test-u32-strstr.c	Thu Jul 02 16:48:24 2015 +0900
@@ -38,7 +38,7 @@
   /* 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 ();