Permalink
Browse files

added a bit of extra testing output

git-svn-id: http://shflags.googlecode.com/svn/trunk/source/1.0@93 9d7cb843-df4f-0410-8a79-4785ae5a3405
  • Loading branch information...
1 parent 825cee8 commit b201f6a9ff931a35ab59f4eff7436f6d6ed17868 kate.ward@forestent.com committed Nov 15, 2008
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/shflags_test_parsing.sh
View
10 src/shflags_test_parsing.sh
@@ -21,7 +21,9 @@
testStandardGetopt()
{
_flags_standardGetopt '-b' >"${stdoutF}" 2>"${stderrF}"
- assertTrue "didn't parse valid flag 'b'" $?
+ rslt=$?
+ assertTrue "didn't parse valid flag 'b'" ${rslt}
+ th_showOutput ${rslt} "${stdoutF}" "${stderrF}"
_flags_standardGetopt '-x' >"${stdoutF}" 2>"${stderrF}"
assertFalse "parsed invalid flag 'x'" $?
@@ -265,8 +267,10 @@ oneTimeSetUp()
{
th_oneTimeSetUp
- if [ ${__FLAGS_GETOPT_VERS} -eq ${__FLAGS_GETOPT_VERS_STD} ]; then
- th_warn 'Standard version of getopt found. Some tests will be skipped.'
+ if flags_getoptIsStd; then
+ th_warn 'Standard version of getopt found. Enhanced tests will be skipped.'
+ else
+ th_warn 'Enhanced version of getopt found. Standard tests will be skipped.'
fi
}

0 comments on commit b201f6a

Please sign in to comment.