diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-01 15:41:37 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:01:05 -0600 |
commit | e25ea3cdf25c061de02507f11265730ca74ab7e7 (patch) | |
tree | 0afb5840e2b5142c177dc28fb897c638f65a28fc /test | |
parent | 80e9fa38b703b3825eba1a32299884ff943ae556 (diff) |
make the librelib 0-args test more strict
Diffstat (limited to 'test')
-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 36ba947..aeb9a8c 100644 --- a/test/librelib-test.sh +++ b/test/librelib-test.sh @@ -11,12 +11,12 @@ after() { } -it_fails_with_0_args() { +it_displays_help_and_fails_with_0_args() { ret=0 librelib >$tmpdir/stdout 2>$tmpdir/stderr || ret=$? [[ -z "$(cat $tmpdir/stdout)" ]] - [[ -n "$(cat $tmpdir/stderr)" ]] + [[ "$(sed 1q $tmpdir/stderr)" =~ Usage:.* ]] [[ $ret != 0 ]] } |