From 07778542b3c7bff1391783fdbb2e995264509e81 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Apr 2020 16:40:25 +0200 Subject: [PATCH] runtests: fix warning about using an undefined variable Follow-up from 4d939ef6ceb2db1 --- tests/runtests.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 7957595444..36f39a7b76 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -4122,10 +4122,10 @@ sub singletest { } } - if(($out[0] eq "") && $protstrip[0]) { + if((!$out[0] || ($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"; + " Server glitch? Total curl failure? Returned: $cmdres\n"; return $errorreturncode; }