]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Increase the test framework timeout from 5s to 60s
authorPaul Smith <psmith@gnu.org>
Tue, 25 Oct 2022 18:44:26 +0000 (14:44 -0400)
committerPaul Smith <psmith@gnu.org>
Tue, 25 Oct 2022 18:44:26 +0000 (14:44 -0400)
It seems that some of the test environments hit the 5s timeout on
some tests.  Since it doesn't really matter, as long as we don't
hang forever, increase the timeout to 60s.

* tests/test_driver.pl: Increase $test_timout to 60.  We don't need
to handle VMS timeouts specially anymore.
* tests/scripts/features/parallelism: We don't need to override the
default timeout anymore.
* tests/scripts/features/patternrules: Remove confusing comment.

tests/scripts/features/parallelism
tests/scripts/features/patternrules
tests/test_driver.pl

index 4991b90c3ff0d08b1c41710d2d7b370655f984f5..98ee8a308e44654d9165754e094b971da802c8b2 100644 (file)
@@ -75,7 +75,6 @@ rmfiles(qw(ONE.inc TWO.inc THREE.inc ONE TWO THREE 1.inc 2.inc));
 # function in an exported recursive variable.  I added some code to check
 # for this situation and print a message if it occurred.  This test used
 # to trigger this code when I added it but no longer does after the fix.
-# We have to increase the timeout from the default (5s) on this test.
 
 run_make_test(q!
 export HI = $(shell $($@.CMD))
@@ -86,7 +85,7 @@ second.CMD = #HELPER# sleep 4
 all: first second
 
 first second: ; @#HELPER# out $@ sleep 1 out $@!,
-              '-j2', "first\nsleep 1\nfirst\nsecond\nsleep 1\nsecond", 0, 7);
+              '-j2', "first\nsleep 1\nfirst\nsecond\nsleep 1\nsecond", 0);
 
 # Michael Matz <matz@suse.de> reported a bug where if make is running in
 # parallel without -k and two jobs die in a row, but not too close to each
index b5b70347b71e5e8e40b63f7eea9a991a7f20a9e1..0b35408d78081c6d08a73aa2293bd2f02dc2a5f8 100644 (file)
@@ -196,7 +196,7 @@ all: foo.x foo-mt.x
               '', "one\ntwo");
 
 # Test pattern rules building the same targets
-# See SV 54233.  Rely on our standard test timeout to break the loop
+# See SV 54233.
 
 touch('a.c');
 
index 32772f4a405fcb07d1dae9258f53f2497e4fa3d1..964d39082e49f1bb1c6003013ba1069ff46a5e09 100644 (file)
@@ -57,8 +57,8 @@ $pathsep = undef;
 $test_passed = 1;
 
 # Timeout in seconds.  If the test takes longer than this we'll fail it.
-$test_timeout = 5;
-$test_timeout = 10 if $^O eq 'VMS';
+# This is to prevent hung tests.
+$test_timeout = 60;
 
 $diff_name = undef;
 
@@ -859,7 +859,8 @@ sub compare_output
       $slurp_mod =~ s,\r\n,\n,gs;
 
       $answer_matched = ($slurp_mod eq $answer_mod);
-      if ($^O eq 'VMS') {
+
+      if (!$answer_matched && $^O eq 'VMS') {
 
         # VMS has extra blank lines in output sometimes.
         # Ticket #41760