From 4d939ef6ceb2db19382848471d13685ee1607a8a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Apr 2020 09:44:33 +0200 Subject: runtests: provide nicer errormsg when protocol "dump" file is empty --- tests/runtests.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/runtests.pl') 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; -- cgit v1.2.3