|
|
25845f |
The commit included in glibc-rh1372304-1.patch removes custom TIMEOUT
|
|
|
25845f |
definitions from the tests it changes. Some of those tests are expected to
|
|
|
25845f |
run for longer than the current default TIMEOUT (2 sec) set in
|
|
|
25845f |
test-skeleton.c and so can time-out and fail when run. This commit avoids
|
|
|
25845f |
the spurious failures by increasing the default TIMEOUT to 20 sec. Upstream,
|
|
|
25845f |
this commit preceded the one included in glibc-rh1372304-1.patch.
|
|
|
25845f |
|
|
|
25845f |
commit a28605b22946c708f0a5c4f06307e1a17650ced8
|
|
|
25845f |
Author: Mike Frysinger <vapier@gentoo.org>
|
|
|
25845f |
Date: Tue Jan 19 09:18:00 2016 -0500
|
|
|
25845f |
|
|
|
25845f |
test-skeleton: increase default TIMEOUT to 20 seconds
|
|
|
25845f |
|
|
|
25845f |
The vast majority of timeouts I've seen w/glibc tests are due to:
|
|
|
25845f |
- slow system (e.g. <1 GHz cpu)
|
|
|
25845f |
- loaded system (e.g. lots of parallelism)
|
|
|
25845f |
Even then, I've seen timeouts on system I don't generally consider
|
|
|
25845f |
slow, or even loaded, and considering TIMEOUT is set to <=10 in ~60
|
|
|
25845f |
tests (and <=20 in ~75 tests), it seems I'm not alone. I've just
|
|
|
25845f |
gotten in the habit of doing `export TIMEOUTFACTOR=10` on all my
|
|
|
25845f |
setups.
|
|
|
25845f |
|
|
|
25845f |
In the edge case where there is a bug in the test and the timeout is
|
|
|
25845f |
hit, I think we all agree that's either a problem with the test or a
|
|
|
25845f |
real bug in the library somewhere. In either case, the incident rate
|
|
|
25845f |
should be low, so catering to that seems like the wrong trade-off.
|
|
|
25845f |
|
|
|
25845f |
Other developers too usually set large timeout factors. Increase the
|
|
|
25845f |
default to 20 seconds to match reality.
|
|
|
25845f |
|
|
|
25845f |
Index: b/test-skeleton.c
|
|
|
25845f |
===================================================================
|
|
|
25845f |
--- a/test-skeleton.c
|
|
|
25845f |
+++ b/test-skeleton.c
|
|
|
25845f |
@@ -368,8 +368,9 @@ main (int argc, char *argv[])
|
|
|
25845f |
|
|
|
25845f |
/* Set timeout. */
|
|
|
25845f |
#ifndef TIMEOUT
|
|
|
25845f |
- /* Default timeout is two seconds. */
|
|
|
25845f |
-# define TIMEOUT 2
|
|
|
25845f |
+ /* Default timeout is twenty seconds. Tests should normally complete faster
|
|
|
25845f |
+ than this, but if they don't, that's abnormal (a bug) anyways. */
|
|
|
25845f |
+# define TIMEOUT 20
|
|
|
25845f |
#endif
|
|
|
25845f |
signal (SIGALRM, signal_handler);
|
|
|
25845f |
alarm (TIMEOUT * timeoutfactor);
|