From: Daniel Stenberg <daniel@haxx.se>
Date: Fri, 30 Aug 2002 10:50:22 +0000 (+0000)
Subject: show return code when run verbose
X-Git-Tag: curl-7_10~73
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=713cb56fea8a6339576742063bc743a6625d3b47;p=curl

show return code when run verbose
---

diff --git a/tests/runtests.pl b/tests/runtests.pl
index e9e5049aa..d0061cb0c 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -621,7 +621,11 @@ sub singletest {
 
     if($errorcode || $res) {
         if($errorcode == $res) {
-            if(!$short) {
+            $errorcode =~ s/\n//;
+            if($verbose) {
+                print " received errorcode $errorcode OK";
+            }
+            elsif(!$short) {
                 print " error OK";
             }
         }