]> diplodocus.org Git - nmh/commitdiff
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)
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.


No differences found