]> diplodocus.org Git - nmh/blobdiff - test/format/test-fmtdump
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / format / test-fmtdump
index 5c822db..0c966c8 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
+fmtdump - >/dev/null 2>&1 || true  # 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