aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-11 01:16:28 +0000
committerYang Tse <yangsita@gmail.com>2009-05-11 01:16:28 +0000
commit75585f771a146daa883cd946285eb6a797e62e5e (patch)
tree2424ff639a2e9bee89090fb4da6355e44d3902fc /tests/runtests.pl
parent9a9f35039edb3df241a21dd1f3dc3104e6489233 (diff)
Fix name of tool shown upon error.
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 5aeed7a2f..4ca2ef945 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2370,7 +2370,8 @@ sub singletest {
}
else {
if(!$short) {
- printf "\ncurl returned $cmdres, %d was expected\n", $errorcode;
+ printf("\n%s returned $cmdres, %d was expected\n",
+ (!$tool)?"curl":$tool, $errorcode);
}
logmsg " exit FAILED\n";
return 1;