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.
This commit is contained in:
Dan Fandrich
2008-10-15 17:41:02 +00:00
parent 0ea1c28135
commit 357383159e
3 changed files with 12 additions and 3 deletions

View File

@@ -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);
}