tests: Add 100-test-false.sh.

* tests/100-test-false.sh: New file.
* Makefile.am (FULL_TESTS): Add it.
This commit is contained in:
Jan Nieuwenhuizen 2019-01-02 13:16:12 +01:00 committed by Timothy Sample
parent 06099ddead
commit 18aefdda18
2 changed files with 7 additions and 0 deletions

View File

@ -230,6 +230,7 @@ FULL_TESTS = \
tests/100-cd.sh \
tests/100-cd-foo.sh \
tests/100-test.sh \
tests/100-test-false.sh \
tests/100-test-file.sh \
tests/100-bracket-file.sh

6
tests/100-test-false.sh Normal file
View File

@ -0,0 +1,6 @@
set +e
false
if test $? -ne 0; then
exit 0;
fi
exit 1