Yang Tse: make runtests.pl more talkative when unable to find out curl's
version.
This commit is contained in:
@@ -843,7 +843,9 @@ sub checksystem {
|
|||||||
my $feat;
|
my $feat;
|
||||||
my $curl;
|
my $curl;
|
||||||
my $libcurl;
|
my $libcurl;
|
||||||
my @version=`$CURL --version 2>/dev/null`;
|
my $versionerr="$LOGDIR/versionerr.log";
|
||||||
|
my $versioncmd="$CURL --version 2>$versionerr";
|
||||||
|
my @version=`$versioncmd`;
|
||||||
for(@version) {
|
for(@version) {
|
||||||
chomp;
|
chomp;
|
||||||
|
|
||||||
@@ -953,7 +955,19 @@ sub checksystem {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!$curl) {
|
if(!$curl) {
|
||||||
die "couldn't run '$CURL'"
|
logmsg "unable to get curl's version! further details are:\n";
|
||||||
|
logmsg "CURL: \n";
|
||||||
|
logmsg "$CURL \n";
|
||||||
|
logmsg "VERSIONCMD: \n";
|
||||||
|
logmsg "$versioncmd \n";
|
||||||
|
logmsg "STDOUT: \n";
|
||||||
|
for(@version) {
|
||||||
|
chomp;
|
||||||
|
logmsg "$_ \n";
|
||||||
|
}
|
||||||
|
logmsg "STDERR: \n";
|
||||||
|
displaylogcontent("$versionerr");
|
||||||
|
die "couldn't get curl's version!";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(-r "../lib/config.h") {
|
if(-r "../lib/config.h") {
|
||||||
|
|||||||
Reference in New Issue
Block a user