]> 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 5c822db3f9e3beb750ae25884642b88f2c8470f7..0c966c843fc5d927d975d16e6b9b50cdb8590dcc 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