]> 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 73fd14de19d84174583d4b752650ea71b6645e27..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"
 
@@ -35,8 +37,9 @@ Usage: fmtdump [switches]
   -help
 EOF
 
-$fmtdump -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+"$fmtdump" -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 # check -version
 case `$fmtdump -v` in