]> diplodocus.org Git - nmh/blobdiff - test/format/test-fmtdump
mh-mkstemp.man: Detail exit status as 255 rather than -1.
[nmh] / test / format / test-fmtdump
index 5c822db3f9e3beb750ae25884642b88f2c8470f7..f919b0a3a4115ee1f6ac271340da29f4e2c859cc 100755 (executable)
@@ -19,6 +19,8 @@ setup_test
 # Use proper program, likely not the first one on PATH.
 fmtdump="${MH_LIBEXEC_DIR}/fmtdump"
 
+check_exit '-eq 1' "$fmtdump" - # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
 actual=$MH_TEST_DIR/$$.actual
@@ -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