]> Savannah Git Hosting - gnulib.git/commit
tests: provide returns_() to simplify exit status checking
authorPádraig Brady <P@draigBrady.com>
Wed, 11 Feb 2015 00:16:55 +0000 (00:16 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 11 Feb 2015 00:20:34 +0000 (00:20 +0000)
commitc61e31c4e5fcf8e1115c7cf57014889151ec77ea
tree43369c3cfb9ebf720773b6b7273a731725b7306f
parentde1cbdd48244c66c51a3e2bc1594ac3ad32ce038
tests: provide returns_() to simplify exit status checking

* tests/init.sh (returns_): A new function for use in tests,
to allow for easier checking of return values, where you expect
a command to exit with failure status.  By checking for a particular
exit code, you don't hide any crashes for example.
ChangeLog
tests/init.sh