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:
Ulrich Windl 2017-09-12 17:08:46 +02:00 committed by Guy Harris
parent 0d8f07921a
commit 071190f7a9

View File

@ -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;