mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
tests/TESTonce: More verbose failure message
Add the reason for not executing a test and the status if the command exited with a non-zero status.
This commit is contained in:
parent
0d8f07921a
commit
071190f7a9
@ -40,7 +40,7 @@ if($r == 0) {
|
||||
unlink "DIFF/$output.diff";
|
||||
exit 0;
|
||||
}
|
||||
printf " %-35s: TEST FAILED", $name;
|
||||
printf " %-35s: TEST FAILED(%s)", $name, $r == -1 ? $! : "exit $?";
|
||||
open FOUT, '>>failure-outputs.txt';
|
||||
printf FOUT "Failed test: $name\n\n";
|
||||
close FOUT;
|
||||
|
Loading…
Reference in New Issue
Block a user