]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: make runtests check that disabled tests exists
authorDaniel Stenberg <daniel@haxx.se>
Fri, 24 Apr 2020 09:21:01 +0000 (11:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 24 Apr 2020 11:43:21 +0000 (13:43 +0200)
... and error out if so. Removed '536' from DISABLED as there is no such
test file.

Closes #5288

tests/data/DISABLED
tests/runtests.pl

index 9b3af1acfaa49cef3bb5631db12e2b8a6260766a..198728fdfcc860604e3b20be8aae191c89c88267 100644 (file)
@@ -22,7 +22,6 @@
 1307
 # Pipelining is deprecated
 530
-536
 584
 1900
 1901
index 1c6a028b945023bbec2d854db229580dd1f2f722..d43b2772b6b82978f54f5be86bef791ccffeceb5 100755 (executable)
@@ -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);