This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix testsuite timeout handling
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: "Carlos O'Donell" <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 10 Dec 2016 16:23:32 +0100
- Subject: [PATCH] Fix testsuite timeout handling
- Authentication-results: sourceware.org; auth=none
- References: <425c6518-69f7-e68d-9599-d81c8c137c96@redhat.com> <14a1be0f-2b7b-56ce-ec18-dabc55c7f0d9@redhat.com> <87d1hfp5z4.fsf@linux-m68k.org> <1a112b98-f3e2-c3eb-e4e6-e0298f04aa59@redhat.com> <3a26a56b-46f3-0c45-cb01-80867d2fa610@redhat.com> <b80a0427-2758-f196-f739-aacbc908f974@redhat.com>
* support/support_test_main.c (support_test_main): Use correct
timeout.
diff --git a/support/support_test_main.c b/support/support_test_main.c
index 72771bf101..e185281eaf 100644
--- a/support/support_test_main.c
+++ b/support/support_test_main.c
@@ -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);
--
2.11.0
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."