summary refs log tree commit diff
path: root/support
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-12-04 11:25:53 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-12-04 12:58:28 -0800
commitbada2e312a8b94c5fc2f5571b249c71cb466a640 (patch)
tree0d9ae0da8f6abf3e0f6136b581cdbeaca7c5be04 /support
parent4df1fa6ddc8925a75f3da644d5da3bb16eb33f02 (diff)
downloadglibc-bada2e312a8b94c5fc2f5571b249c71cb466a640.tar.gz
glibc-bada2e312a8b94c5fc2f5571b249c71cb466a640.tar.xz
glibc-bada2e312a8b94c5fc2f5571b249c71cb466a640.zip
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 <fweimer@redhat.com>
Diffstat (limited to 'support')
-rw-r--r--support/support_test_main.c2
1 files changed, 1 insertions, 1 deletions
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