From e25ea3cdf25c061de02507f11265730ca74ab7e7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Jun 2013 15:41:37 -0600 Subject: make the librelib 0-args test more strict --- test/librelib-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 ]] } -- cgit v1.2.2