diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-02-02 22:24:28 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-02-02 22:24:28 -0500 |
commit | 6fb2295a25ee4a24b38f4fce1b652a60cedd1b64 (patch) | |
tree | 4eef41fc33185611f67232fb28089180c496caeb /test/librelib-test.sh | |
parent | ef7a330eae68da2f47c617502b28a2f8c9eeb792 (diff) |
test: `! true` doesn't trip `set -e`, do subshell magic
Diffstat (limited to 'test/librelib-test.sh')
-rw-r--r-- | test/librelib-test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/librelib-test.sh b/test/librelib-test.sh index 23c38dc..a74ce0a 100644 --- a/test/librelib-test.sh +++ b/test/librelib-test.sh @@ -26,7 +26,7 @@ it_fails_with_2_args() { librelib a b >$tmpdir/stdout 2>$tmpdir/stderr || ret=$? empty $tmpdir/stdout - ! empty $tmpdir/stderr + not empty $tmpdir/stderr [[ $ret != 0 ]] } @@ -68,6 +68,6 @@ it_fails_to_find_phony() { librelib phony >$tmpdir/stdout 2>$tmpdir/stderr || ret=$? empty $tmpdir/stdout - ! empty $tmpdir/stderr + not empty $tmpdir/stderr [[ $ret != 0 ]] } |