tests: make it easier to bypass alarm time in debugger
[gnulib.git] / tests / test-ptsname_r.c
index acc3c94..b194303 100644 (file)
@@ -104,8 +104,9 @@ main (void)
 #if HAVE_DECL_ALARM
   /* Declare failure if test takes too long, by using default abort
      caused by SIGALRM.  */
+  int alarm_value = 5;
   signal (SIGALRM, SIG_DFL);
-  alarm (5);
+  alarm (alarm_value);
 #endif
 
   {