diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-10-01 22:22:19 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-10-03 05:33:31 -0700 |
commit | 0a5d54d091a421b00dd2c80bc3cf4b51f1d63740 (patch) | |
tree | 9c44dbb81bb61db78906d3e529925b9e937e5a3f | |
parent | d4c0c14ba8ece62dbac0db6e800df66e6c92044c (diff) | |
download | pkg-config-0a5d54d091a421b00dd2c80bc3cf4b51f1d63740.tar.gz |
check: Ensure unknown options fail
-rwxr-xr-x | check/check-cmd-options | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/check/check-cmd-options b/check/check-cmd-options index 654021f..5f94cf1 100755 --- a/check/check-cmd-options +++ b/check/check-cmd-options @@ -4,6 +4,11 @@ set -e . ${srcdir}/common +# non-existent option should fail +EXPECT_RETURN=1 +RESULT="Unknown option --blah" +run_test --blah + # all of these should fail, but when '=' or ' ' aren't used consistently # between the two options, broken popt sets the version to compare to be # "a=b" |