tweaked tests to reflect fix for mutually exclusive switches

This commit is contained in:
mes5k 2011-01-03 00:21:19 +00:00
parent fc9d87a003
commit 94ed69a0d9
3 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
PARSE ERROR: PARSE ERROR: Argument: -i (--iii)
Too many arguments! Mutually exclusive argument already set!
Brief USAGE: Brief USAGE:
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff

View File

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
# failure # failure
# This used to fail on the "Too many arguments!" but now fails sooner,
# and on a more approriate error.
../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two -j huh > tmp.out 2>&1 ../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two -j huh > tmp.out 2>&1
if cmp -s tmp.out $srcdir/test57.out; then if cmp -s tmp.out $srcdir/test57.out; then

View File

@ -1,4 +1,4 @@
PARSE ERROR: Argument: -a (--atmc) PARSE ERROR: Argument: -b (--btmc)
Mutually exclusive argument already set! Mutually exclusive argument already set!
Brief USAGE: Brief USAGE: