mirror of
https://github.com/curl/curl.git
synced 2026-07-25 16:27:16 +03:00
runtests.pl: fix printing of multivalued error codes
This commit is contained in:
parent
629d2e3450
commit
9d0d1ada05
1 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue