Mercurial > gnulib
changeset 10192:0553e4d56bcc
Work around environments that (stupidly) ignore SIGALRM.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 10 Jun 2008 12:13:43 +0200 |
parents | ccfd3047da72 |
children | b67d0f4f1513 |
files | ChangeLog tests/test-memmem.c tests/test-strcasestr.c tests/test-strstr.c |
diffstat | 4 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Jun 10 02:40:28 2008 +0200 +++ b/ChangeLog Tue Jun 10 12:13:43 2008 +0200 @@ -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.
--- a/tests/test-memmem.c Tue Jun 10 02:40:28 2008 +0200 +++ b/tests/test-memmem.c Tue Jun 10 12:13:43 2008 +0200 @@ -43,6 +43,7 @@ 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
--- a/tests/test-strcasestr.c Tue Jun 10 02:40:28 2008 +0200 +++ b/tests/test-strcasestr.c Tue Jun 10 12:13:43 2008 +0200 @@ -44,6 +44,7 @@ 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
--- a/tests/test-strstr.c Tue Jun 10 02:40:28 2008 +0200 +++ b/tests/test-strstr.c Tue Jun 10 12:13:43 2008 +0200 @@ -43,6 +43,7 @@ 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