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