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