diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 19:23:56 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 19:23:56 +0000 |
commit | 1d8212e53ab7d4c7ff7ba98360a2eefd9c29e310 (patch) | |
tree | fea410497afcc79a300543762d3f76d493fac9b4 | |
parent | 083c5e17e176058190d228ee9c25987898014417 (diff) |
Yang Tse: make runtests.pl more talkative when unable to find out curl's
version.
-rwxr-xr-x | tests/runtests.pl | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 012e8bcca..9b52e25b7 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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") { |