tap/awk: handle non-zero exit status from the test command
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 22 Aug 2011 13:00:09 +0000 (15:00 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 22 Aug 2011 13:23:43 +0000 (15:23 +0200)
commitd630a0d4dc7c1af141ab3c61458cdbc690dac88c
tree6b52cb3ba1fedaaff844b2c42db2b8be9d557496
parent5116cc978798cedd7a522d3fdd3140efde9933b3
tap/awk: handle non-zero exit status from the test command

* lib/tap-driver.sh (get_test_exit_message): New function in the
awk script, used to extract the exit status of the test program,
or at least a good guess of it.
(write_test_results): Use it, reporting an ERROR result if it
detects that the test program exited with a non-zero status.
* tests/tap-signal.test: Account for the differences in the
error messages generated by the awk and perl TAP drivers.  Fix
an unrelated typo in comments since we are at it.
ChangeLog
lib/tap-driver.sh
tests/tap-signal.test