summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-06-10 12:13:43 +0200
committerBruno Haible <bruno@clisp.org>2008-06-10 12:13:43 +0200
commit72a9261fccc4b028260431b1b4dd6246086aba52 (patch)
tree01993cb9980733313a8381dc3ae0fcd7b0c1c832
parent765ede785ea58125c799662bb90440e5c990afa7 (diff)
downloadgnulib-72a9261fccc4b028260431b1b4dd6246086aba52.tar.gz
Work around environments that (stupidly) ignore SIGALRM.
-rw-r--r--ChangeLog7
-rw-r--r--tests/test-memmem.c1
-rw-r--r--tests/test-strcasestr.c1
-rw-r--r--tests/test-strstr.c1
4 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2675fe2bf2..97aec20e88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-10 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-memmem.c (main): Reset SIGALRM to default handling before
+ using alarm().
+ * tests/test-strcasestr.c (main): Likewise.
+ * tests/test-strstr.c (main): Likewise.
+
2008-06-09 Bruno Haible <bruno@clisp.org>
Work around the Solaris 10 ACE ACLs ABI change.
diff --git a/tests/test-memmem.c b/tests/test-memmem.c
index c074a4e52b..0061d54608 100644
--- a/tests/test-memmem.c
+++ b/tests/test-memmem.c
@@ -43,6 +43,7 @@ main (int argc, char *argv[])
caused by SIGALRM. All known platforms that lack alarm also lack
memmem, and the replacement memmem is known to not take too
long. */
+ signal (SIGALRM, SIG_DFL);
alarm (100);
#endif
diff --git a/tests/test-strcasestr.c b/tests/test-strcasestr.c
index 6eb145eb32..5e7fd36cda 100644
--- a/tests/test-strcasestr.c
+++ b/tests/test-strcasestr.c
@@ -44,6 +44,7 @@ main ()
caused by SIGALRM. All known platforms that lack alarm also lack
memmem, and the replacement memmem is known to not take too
long. */
+ signal (SIGALRM, SIG_DFL);
alarm (50);
#endif
diff --git a/tests/test-strstr.c b/tests/test-strstr.c
index 81242e5b47..9f2ecde1ae 100644
--- a/tests/test-strstr.c
+++ b/tests/test-strstr.c
@@ -43,6 +43,7 @@ main (int argc, char *argv[])
caused by SIGALRM. All known platforms that lack alarm also have
a quadratic strstr, and the replacement strstr is known to not
take too long. */
+ signal (SIGALRM, SIG_DFL);
alarm (50);
#endif