1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

runtests: provide nicer errormsg when protocol "dump" file is empty

This commit is contained in:
Daniel Stenberg 2020-04-08 09:44:33 +02:00
parent 0fdf965126
commit 4d939ef6ce
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

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