gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 148/264: runtests: provide nicer errormsg when protocol "dump" f


From: gnunet
Subject: [gnurl] 148/264: runtests: provide nicer errormsg when protocol "dump" file is empty
Date: Thu, 30 Apr 2020 16:07:31 +0200

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

nikita pushed a commit to branch master
in repository gnurl.

commit 4d939ef6ceb2db19382848471d13685ee1607a8a
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Apr 8 09:44:33 2020 +0200

    runtests: provide nicer errormsg when protocol "dump" file is empty
---
 tests/runtests.pl | 7 +++++++
 1 file changed, 7 insertions(+)

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;

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



reply via email to

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