From bada2e312a8b94c5fc2f5571b249c71cb466a640 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 4 Dec 2021 11:25:53 -0800 Subject: Add --with-timeoutfactor=NUM to specify TIMEOUTFACTOR On Ice Lake and Tiger Lake laptops, some test programs timeout when there are 3 "make check -j8" runs in parallel. Add --with-timeoutfactor=NUM to specify an integer to scale the timeout of test programs, which can be overriden by TIMEOUTFACTOR environment variable. Reviewed-by: Florian Weimer --- support/support_test_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support') diff --git a/support/support_test_main.c b/support/support_test_main.c index 66a754b84f..0e07dc53cd 100644 --- a/support/support_test_main.c +++ b/support/support_test_main.c @@ -286,7 +286,7 @@ support_test_main (int argc, char **argv, const struct test_config *config) int direct = 0; /* Directly call the test function? */ int status; int opt; - unsigned int timeoutfactor = 1; + unsigned int timeoutfactor = TIMEOUTFACTOR; pid_t termpid; /* If we're debugging the test, we need to disable timeouts and use -- cgit 1.4.1