Work around environments that (stupidly) ignore SIGALRM.
[gnulib.git] / tests / test-memmem.c
index c074a4e..0061d54 100644 (file)
@@ -43,6 +43,7 @@ main (int argc, char *argv[])
      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