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