diff options
author | Yang Tse <yangsita@gmail.com> | 2011-10-21 16:34:37 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-10-21 16:52:15 +0200 |
commit | 9d0d1ada05ecea912c84e38976b565f83225b47d (patch) | |
tree | 5cab0c683998ae0a080b948228e0374f59c7d9e5 | |
parent | 629d2e34508838069db83e1082ce9e7f2c7b8ff8 (diff) |
runtests.pl: fix printing of multivalued error codes
-rwxr-xr-x | tests/runtests.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 6873fb14c..964e3b800 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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"; |