]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: check for the disabled tests relative srcdir
authorDaniel Stenberg <daniel@haxx.se>
Sat, 25 Apr 2020 14:30:26 +0000 (16:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 25 Apr 2020 21:24:12 +0000 (23:24 +0200)
To make it work correctly for out-of-tree builds.

Follow-up to 75e8feb6fb08b

Bug: https://github.com/curl/curl/pull/5288#issuecomment-619346389
Reported-by: Marcel Raad
Closes #5297

tests/runtests.pl

index da3fac2e6e611938a05cdb375dfd737373ae7283..fe794b3b72d1c4aedf8cd44298b560fa5276ac6c 100755 (executable)
@@ -5446,7 +5446,7 @@ sub disabledtests {
             if($_ =~ /(\d+)/) {
                 my ($n) = $1;
                 $disabled{$n}=$n; # disable this test number
-                if(! -f "data/test$n") {
+                if(! -f "$srcdir/data/test$n") {
                     print STDERR "WARNING! Non-exiting test $n in DISABLED!\n";
                     # fail hard to make user notice
                     exit 1;