tests: make it easier to bypass alarm time in debugger
[gnulib.git] / tests / test-ptsname.c
index 29cf72c..15d4925 100644 (file)
@@ -59,8 +59,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
 
   {