diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-27 20:31:01 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-27 20:31:01 -0600 |
commit | 47fb685c2d6df5995134e9b8d322f667058e505e (patch) | |
tree | 7ab4e25a2233db0bb4bd9fd5f7d1228db271d1d0 /test/libremessages-test.sh | |
parent | d13ea2efafcaea45961b43a736261fe35bf2a6e7 (diff) |
fix and add unit tests
Diffstat (limited to 'test/libremessages-test.sh')
-rw-r--r-- | test/libremessages-test.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/libremessages-test.sh b/test/libremessages-test.sh index 6da53d1..22aad47 100644 --- a/test/libremessages-test.sh +++ b/test/libremessages-test.sh @@ -21,11 +21,12 @@ it_can_be_included_with_set_euE() ( ) it_works_with_no_color_and_set_euE() ( - unset TERM - set -euE - . libremessages - - msg Foo >$tmpdir/stdout 2>$tmpdir/stderr + ( + unset TERM + set -euE + . libremessages + msg Foo + ) >$tmpdir/stdout 2>$tmpdir/stderr [[ -z "$(cat $tmpdir/stdout)" ]] [[ -n "$(cat $tmpdir/stderr)" ]] |