summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-08 09:44:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-08 14:15:47 +0200
commit4d939ef6ceb2db19382848471d13685ee1607a8a (patch)
tree40f06dc2f8a41ac15c0bd8af3ca17aa658217d5c /tests
parent0fdf96512613574591f501d63fe49495ba40e1d5 (diff)
downloadcurl-4d939ef6ceb2db19382848471d13685ee1607a8a.tar.gz
runtests: provide nicer errormsg when protocol "dump" file is empty
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 88a8b7f7f..795759544 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -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;