aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-10-21 16:34:37 +0200
committerYang Tse <yangsita@gmail.com>2011-10-21 16:52:15 +0200
commit9d0d1ada05ecea912c84e38976b565f83225b47d (patch)
tree5cab0c683998ae0a080b948228e0374f59c7d9e5 /tests/runtests.pl
parent629d2e34508838069db83e1082ce9e7f2c7b8ff8 (diff)
runtests.pl: fix printing of multivalued error codes
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl3
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";