Patchwork Fix testsuite timeout handling

login
register
mail settings
Submitter Andreas Schwab
Date Dec. 10, 2016, 3:23 p.m.
Message ID <87twabhkp7.fsf_-_@linux-m68k.org>
Download mbox | patch
Permalink /patch/18340/
State New
Headers show

Comments

Andreas Schwab - Dec. 10, 2016, 3:23 p.m.
* support/support_test_main.c (support_test_main): Use correct
	timeout.
Florian Weimer - Dec. 10, 2016, 3:36 p.m.
On 12/10/2016 04:23 PM, Andreas Schwab wrote:
> 	* 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);

Looks good to me.

Thanks,
Florian

Patch

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);