Fix testsuite timeout handling
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 10 Dec 2016 15:10:53 +0000 (16:10 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 10 Dec 2016 15:22:01 +0000 (16:22 +0100)
ChangeLog
support/support_test_main.c

index 5a9191a..5d51e9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * support/support_test_main.c (support_test_main): Use correct
+       timeout.
+
 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
            Florian Weimer  <fweimer@redhat.com>
 
index 72771bf..e185281 100644 (file)
@@ -338,7 +338,7 @@ support_test_main (int argc, char **argv, const struct test_config *config)
 
   /* Set timeout.  */
   signal (SIGALRM, signal_handler);
-  alarm (config->timeout * timeoutfactor);
+  alarm (timeout * timeoutfactor);
 
   /* Make sure we clean up if the wrapper gets interrupted.  */
   signal (SIGINT, signal_handler);