diff options
author | kate.ward <kate.ward@forestent.com> | 2008-11-13 00:42:43 +0000 |
---|---|---|
committer | kate.ward <kate.ward@forestent.com> | 2008-11-13 00:42:43 +0000 |
commit | 5b48fc1ae0b7dc7d8edeaa8bb544f321794d9681 (patch) | |
tree | ef0c28e500546b6ae47919fb65353c7ef757bb4e /source/1.0/src/shflags_test_public.sh | |
parent | e556cbf61eb41fdf96d70da51d38982d9c71af4f (diff) | |
download | shflags-5b48fc1ae0b7dc7d8edeaa8bb544f321794d9681.tar.gz |
issue# 2 : --nohelp flag no longer produces help output
Diffstat (limited to 'source/1.0/src/shflags_test_public.sh')
-rwxr-xr-x | source/1.0/src/shflags_test_public.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/1.0/src/shflags_test_public.sh b/source/1.0/src/shflags_test_public.sh index ea16bb0..f44c275 100755 --- a/source/1.0/src/shflags_test_public.sh +++ b/source/1.0/src/shflags_test_public.sh @@ -117,6 +117,17 @@ EOF && cat "${stderrF}" } +testNoHelp() +{ + flags_getoptIsEnh || startSkipping + + ( FLAGS --nohelp >"${stdoutF}" 2>"${stderrF}" ) + rtrn=$? + assertTrue "FLAGS returned a non-zero result (${rtrn})" ${rtrn} + assertFalse 'expected no output to STDOUT' "[ -s '${stdoutF}' ]" + assertFalse 'expected no output to STDERR' "[ -s '${stderrF}' ]" +} + #------------------------------------------------------------------------------ # suite functions # |