1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

runtests: check for the disabled tests relative srcdir

To make it work correctly for out-of-tree builds.

Follow-up to 75e8feb6fb

Bug: https://github.com/curl/curl/pull/5288#issuecomment-619346389
Reported-by: Marcel Raad
Closes #5297
This commit is contained in:
Daniel Stenberg 2020-04-25 16:30:26 +02:00
parent 2a33417e1d
commit 2fc1c9d7e7
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;