]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvtty
Get coverage of quite a few of the `ambiguous switch' case.
[nmh] / test / rcv / test-rcvtty
index f0e6558f02bd44f74ad74aaec3383ab6dc4917e0..c8c1c2e52901b57e42e2f81d971dd7fa7a62559b 100755 (executable)
@@ -19,6 +19,8 @@ setup_test
 # Use proper program, likely not the first one on PATH.
 rcvtty="${MH_LIBEXEC_DIR}/rcvtty"
 
+! $rcvtty - >/dev/null 2>&1 # gcov
+
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
 
@@ -37,7 +39,8 @@ Usage: rcvtty [command ...]
   -help
 EOF
 
-run_prog $rcvtty -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog "$rcvtty" -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version