mirror of
https://github.com/curl/curl.git
synced 2026-04-17 18:41:41 +03:00
runtests: provide nicer errormsg when protocol "dump" file is empty
This commit is contained in:
parent
0fdf965126
commit
4d939ef6ce
1 changed files with 7 additions and 0 deletions
|
|
@ -4122,6 +4122,13 @@ sub singletest {
|
|||
}
|
||||
}
|
||||
|
||||
if(($out[0] eq "") && $protstrip[0]) {
|
||||
logmsg "\n $testnum: protocol FAILED!\n".
|
||||
" There was no content at all in the file $SERVERIN.\n".
|
||||
" Server glitch? Total curl failure?\n";
|
||||
return $errorreturncode;
|
||||
}
|
||||
|
||||
$res = compare($testnum, $testname, "protocol", \@out, \@protstrip);
|
||||
if($res) {
|
||||
return $errorreturncode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue