]> diplodocus.org Git - nmh/commit
test/common.sh.in: Add test_exit() for $? checking.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 31 Oct 2016 17:18:11 +0000 (17:18 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 31 Oct 2016 17:18:11 +0000 (17:18 +0000)
commit0b2f6fb7342984e3e73544600c48fddf07541beb
treec0df66f16686074563b38c7ea9e9d67cbb0116aa
parentb7cbd7c8a39920669db61d331b12839f2a2d3562
test/common.sh.in: Add test_exit() for $? checking.

The stdout and stderr of the command being tested are saved but ignored,
only regurgitated if the test fails.  The test is stated as a fragment
of a test(1) condition, e.g. '-eq 1'.  This is mainly intended for the
quick one-liners to increase gcov coverage and thus valgrind's scope.
Over time, better tests that check more of the command's behaviour can
replace these, keeping the coverage level.
test/common.sh.in