summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-08 16:40:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-09 09:45:52 +0200
commit07778542b3c7bff1391783fdbb2e995264509e81 (patch)
tree9f3cd90f9d1610ef67a53b82d9dd326a14d9a600
parent3f704083bf8417ceedc478f40bbea34bf60bdb36 (diff)
downloadcurl-07778542b3c7bff1391783fdbb2e995264509e81.tar.gz
runtests: fix warning about using an undefined variable
Follow-up from 4d939ef6ceb2db1
-rwxr-xr-xtests/runtests.pl4
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;
}