]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvstore
Get coverage of quite a few of the `ambiguous switch' case.
[nmh] / test / rcv / test-rcvstore
index 9656f373ee93db5a278c2ef17e6a06c45ef17db4..27ce3f6b65567045828d20e5d3615d355c5506d9 100755 (executable)
@@ -19,6 +19,8 @@ setup_test
 # Use proper program, likely not the first one on PATH.
 rcvstore="${MH_LIBEXEC_DIR}/rcvstore"
 
+! $rcvstore - >/dev/null 2>&1 # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
 actual=$MH_TEST_DIR/$$.actual
@@ -38,8 +40,9 @@ Usage: rcvstore [+folder] [switches]
   -help
 EOF
 
-run_prog $rcvstore -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+run_prog "$rcvstore" -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 # check -version
 case `$rcvstore -v` in