From: Ralph Corderoy Date: Mon, 31 Oct 2016 17:18:11 +0000 (+0000) Subject: test/common.sh.in: Add test_exit() for $? checking. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0b2f6fb7342984e3e73544600c48fddf07541beb?hp=0b2f6fb7342984e3e73544600c48fddf07541beb 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. ---