]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests.pl: fix printing of multivalued error codes
authorYang Tse <yangsita@gmail.com>
Fri, 21 Oct 2011 14:34:37 +0000 (16:34 +0200)
committerYang Tse <yangsita@gmail.com>
Fri, 21 Oct 2011 14:52:15 +0000 (16:52 +0200)
tests/runtests.pl

index 6873fb14c63d91b73cd61a589b80d193710b4cd4..964e3b800fd938af3fe443f3a27df4ebce32be03 100755 (executable)
@@ -3167,6 +3167,7 @@ sub singletest {
     my $errorcode = $err[0] || "0";
     my $ok="";
     my $res;
+    chomp $errorcode;
     if (@validstdout) {
         # verify redirected stdout
         my @actual = loadarray($STDOUT);
@@ -3354,7 +3355,7 @@ sub singletest {
     }
     else {
         if(!$short) {
-            printf("\n%s returned $cmdres, %d was expected\n",
+            printf("\n%s returned $cmdres, when expecting %s\n",
                    (!$tool)?"curl":$tool, $errorcode);
         }
         logmsg " exit FAILED\n";