logmsg " postcheck FAILED\n";
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
- return -3;
+ return -1;
}
}
}
$res = compare($testnum, $testname, "stdout", \@actual, \@validstdout);
if($res) {
- return -3;
+ return -1;
}
$ok .= "s";
}
$res = compare($testnum, $testname, "stderr", \@actual, \@validstderr);
if($res) {
- return -3;
+ return -1;
}
$ok .= "r";
}
logmsg "\n $testnum: protocol FAILED!\n".
" There was no content at all in the file $SERVERIN.\n".
" Server glitch? Total curl failure? Returned: $cmdres\n";
- return -3;
+ return -1;
}
$res = compare($testnum, $testname, "protocol", \@out, \@protocol);
if($res) {
- return -3;
+ return -1;
}
$ok .= "p";
my @out = loadarray($CURLOUT);
$res = compare($testnum, $testname, "data", \@out, \@reply);
if ($res) {
- return -3;
+ return -1;
}
$ok .= "d";
}
$res = compare($testnum, $testname, "upload", \@out, \@upload);
if ($res) {
- return -3;
+ return -1;
}
$ok .= "u";
}
$res = compare($testnum, $testname, "proxy", \@out, \@proxyprot);
if($res) {
- return -3;
+ return -1;
}
$ok .= "P";
$res = compare($testnum, $testname, "output ($filename)",
\@generated, \@outfile);
if($res) {
- return -3;
+ return -1;
}
$outputok = 1; # output checked
my @out = loadarray($SOCKSIN);
$res = compare($testnum, $testname, "socks", \@out, \@socksprot);
if($res) {
- return -3;
+ return -1;
}
}
logmsg " exit FAILED\n";
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
- return -3;
+ return -1;
}
if($has_memory_tracking) {
logmsg @memdata;
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
- return -3;
+ return -1;
}
else {
$ok .= "m";
logmsg "ERROR: unable to read $LOGDIR\n";
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
- return -3;
+ return -1;
}
my @files = readdir(DIR);
closedir(DIR);
logmsg "ERROR: valgrind log file missing for test $testnum\n";
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
- return -3;
+ return -1;
}
my @e = valgrindparse("$LOGDIR/$vgfile");
if(@e && $e[0]) {
}
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
- return -3;
+ return -1;
}
$ok .= "v";
}
#######################################################################
# Verify that the test succeeded
$error = singletest_check($testnum, $cmdres, $CURLOUT, $tool, $disablevalgrind);
- # TODO: try to simplify the return codes
if($error == -1) {
- return $error;
+ # return a test failure, either to be reported or to be ignored
+ return $errorreturncode;
}
elsif($error == -2) {
+ # torture test; there is no verification, so the run result holds the
+ # test success code
return $cmdres;
}
- elsif($error == -3) {
- return $errorreturncode;
- }
#######################################################################
# Report a successful test