From 7ef61b4ce65efc9cf2a8903dbd1e6517932cb83d Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 20 Jun 2012 09:09:24 -0500 Subject: [PATCH] For whatever reason, gcov got fooled by test-whom until a test of -help was added. --- test/whom/test-whom | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/test/whom/test-whom b/test/whom/test-whom index 5560446..b3f20eb 100755 --- a/test/whom/test-whom +++ b/test/whom/test-whom @@ -32,6 +32,34 @@ Subject: Testing message 1 This is a draft message. EOF +# check -help +cat >$expected <$actual 2>&1 +check $expected $actual + +# check -version +case `whom -v` in + whom\ --*) ;; + * ) echo "$0: whom -v generated unexpected output" 1>&2 + failed=`expr ${failed:-0} + 1`;; +esac + # check with no options run_test 'whom' ' -- Network Recipients -- user at example.com' -- 1.7.10.4