1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

Yang Tse: make runtests.pl more talkative when unable to find out curl's

version.
This commit is contained in:
Daniel Stenberg 2005-12-05 19:23:56 +00:00
parent 083c5e17e1
commit 1d8212e53a

View File

@ -843,7 +843,9 @@ sub checksystem {
my $feat;
my $curl;
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) {
chomp;
@ -953,7 +955,19 @@ sub checksystem {
}
}
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") {