mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
runtests.pl: Don't expect $TESTDIR/DISABLED to exist
If a non-standard $TESTDIR is used the file may not be necessary. Previously a "missing" file resulted in the warning: readline() on closed filehandle D at ./runtests.pl line 4940.
This commit is contained in:
parent
5828e886e6
commit
dc7a598126
@ -4865,11 +4865,11 @@ if(!$listonly) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Fetch all disabled tests
|
# Fetch all disabled tests, if there are any
|
||||||
#
|
#
|
||||||
|
|
||||||
open(D, "<$TESTDIR/DISABLED");
|
if(open(D, "<$TESTDIR/DISABLED")) {
|
||||||
while(<D>) {
|
while(<D>) {
|
||||||
if(/^ *\#/) {
|
if(/^ *\#/) {
|
||||||
# allow comments
|
# allow comments
|
||||||
next;
|
next;
|
||||||
@ -4877,8 +4877,9 @@ while(<D>) {
|
|||||||
if($_ =~ /(\d+)/) {
|
if($_ =~ /(\d+)/) {
|
||||||
$disabled{$1}=$1; # disable this test number
|
$disabled{$1}=$1; # disable this test number
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
close(D);
|
||||||
}
|
}
|
||||||
close(D);
|
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# If 'all' tests are requested, find out all test numbers
|
# If 'all' tests are requested, find out all test numbers
|
||||||
|
Loading…
Reference in New Issue
Block a user