diff options
author | Bruno Haible <bruno@clisp.org> | 2008-06-10 12:13:43 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-06-10 12:13:43 +0200 |
commit | 72a9261fccc4b028260431b1b4dd6246086aba52 (patch) | |
tree | 01993cb9980733313a8381dc3ae0fcd7b0c1c832 /tests/test-strstr.c | |
parent | 765ede785ea58125c799662bb90440e5c990afa7 (diff) | |
download | gnulib-72a9261fccc4b028260431b1b4dd6246086aba52.tar.gz |
Work around environments that (stupidly) ignore SIGALRM.
Diffstat (limited to 'tests/test-strstr.c')
-rw-r--r-- | tests/test-strstr.c | 1 |
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 |