diff --git a/Makefile.am b/Makefile.am index 34853ac..9133112 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/tests/100-test-false.sh b/tests/100-test-false.sh new file mode 100644 index 0000000..5b8f214 --- /dev/null +++ b/tests/100-test-false.sh @@ -0,0 +1,6 @@ +set +e +false +if test $? -ne 0; then + exit 0; +fi +exit 1