diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-04-08 16:40:25 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-04-09 09:45:52 +0200 |
commit | 07778542b3c7bff1391783fdbb2e995264509e81 (patch) | |
tree | 9f3cd90f9d1610ef67a53b82d9dd326a14d9a600 /tests | |
parent | 3f704083bf8417ceedc478f40bbea34bf60bdb36 (diff) |
runtests: fix warning about using an undefined variable
Follow-up from 4d939ef6ceb2db1
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 795759544..36f39a7b7 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; } |