tests: make it easier to bypass alarm time in debugger
[gnulib.git] / tests / test-strcasestr.c
index 0ca3692..df75e78 100644 (file)
@@ -37,8 +37,9 @@ main ()
      caused by SIGALRM.  All known platforms that lack alarm also lack
      strcasestr, and the replacement strcasestr is known to not take too
      long.  */
+  int alarm_value = 50;
   signal (SIGALRM, SIG_DFL);
-  alarm (50);
+  alarm (alarm_value);
 #endif
 
   {