Work around environments that (stupidly) ignore SIGALRM.
[gnulib.git] / tests / test-strstr.c
index 81242e5..9f2ecde 100644 (file)
@@ -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