]> diplodocus.org Git - nmh/blobdiff - test/folder/test-packf
fgets() reserves space for the NUL itself.
[nmh] / test / folder / test-packf
index 91c4cb510209984d9b1443e4a39d18c553f9e084..fac1a25133840c180fb22735bdf8bc7a40dc857a 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
+! packf - >/dev/null 2>&1 # gcov
+
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
 
@@ -32,7 +34,7 @@ Usage: packf [+folder] [msgs] [switches]
 EOF
 
 #### Skip nmh intro text.
-packf -help | sed '/^$/Q' >"$actual" 2>&1
+packf -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version