gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 151/264: runtests: fix warning about using an undefined variable


From: gnunet
Subject: [gnurl] 151/264: runtests: fix warning about using an undefined variable
Date: Thu, 30 Apr 2020 16:07:34 +0200

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 07778542b3c7bff1391783fdbb2e995264509e81
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Apr 8 16:40:25 2020 +0200

    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 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;
         }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]