aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-24 11:21:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-24 13:43:21 +0200
commit75e8feb6fb08b1e5849f5b05a7e815b234685f16 (patch)
treee76f0cbb404e14276ea6fbfeb3483ba8863ffe7a /tests/runtests.pl
parent1ae586005929b63aef58525fce0c11afbee54a91 (diff)
tests: make runtests check that disabled tests exists
... and error out if so. Removed '536' from DISABLED as there is no such test file. Closes #5288
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 1c6a028b9..d43b2772b 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -5492,7 +5492,13 @@ sub disabledtests {
next;
}
if($_ =~ /(\d+)/) {
- $disabled{$1}=$1; # disable this test number
+ my ($n) = $1;
+ $disabled{$n}=$n; # disable this test number
+ if(! -f "data/test$n") {
+ print STDERR "WARNING! Non-exiting test $n in DISABLED!\n";
+ # fail hard to make user notice
+ exit 1;
+ }
}
}
close(D);