summaryrefslogtreecommitdiff
path: root/tests/test-strstr.c
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 /tests/test-strstr.c
parent765ede785ea58125c799662bb90440e5c990afa7 (diff)
downloadgnulib-72a9261fccc4b028260431b1b4dd6246086aba52.tar.gz
Work around environments that (stupidly) ignore SIGALRM.
Diffstat (limited to 'tests/test-strstr.c')
-rw-r--r--tests/test-strstr.c1
1 files changed, 1 insertions, 0 deletions
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