aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-10-15 17:41:02 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-10-15 17:41:02 +0000
commit357383159e9840c65a850e738dd95cf5fc02d67b (patch)
tree2a69b3bbba6ce3bf35ff913c76ec7292d0a271dc /tests/runtests.pl
parent0ea1c281351ecc1290df16b87d9afb337e297c61 (diff)
A <precheck> command is considered to have failed if it returns a non-zero
return code. This way, if the precheck command can't be run at all for whatever reason, it's treated as a precheck failure which causes the test to be skipped.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index e426b4afd..5456a8732 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -486,6 +486,7 @@ sub torture {
else {
$ret = runclient($testcmd);
}
+ #logmsg "$_ Returned " . $ret / 256 . "\n";
# Now clear the variable again
$ENV{'CURL_MEMLIMIT'} = undef;
@@ -1857,6 +1858,8 @@ sub singletest {
if($o[0]) {
$why = $o[0];
chomp $why;
+ } elsif($?) {
+ $why = "precheck command error";
}
logmsg "prechecked $cmd\n" if($verbose);
}