X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-strcasestr.c;h=4abf49a0520eef7baa6f278649d72e20f5d65ba3;hb=4097b52187106b6a2940d28968cfecd4e53f9b4e;hp=6eb145eb32cb87105d011179822dcaffdda083c0;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/test-strcasestr.c b/tests/test-strcasestr.c index 6eb145eb3..4abf49a05 100644 --- a/tests/test-strcasestr.c +++ b/tests/test-strcasestr.c @@ -20,6 +20,7 @@ #include +#include #include #include #include @@ -42,8 +43,9 @@ main () #if HAVE_DECL_ALARM /* Declare failure if test takes too long, by using default abort caused by SIGALRM. All known platforms that lack alarm also lack - memmem, and the replacement memmem is known to not take too + strcasestr, and the replacement strcasestr is known to not take too long. */ + signal (SIGALRM, SIG_DFL); alarm (50); #endif