]> diplodocus.org Git - nmh/blobdiff - test/folder/test-packf
mhbuild's fgetstr(): simplify source, logic untouched.
[nmh] / test / folder / test-packf
index 91c4cb510209984d9b1443e4a39d18c553f9e084..f4f2d435d52dab20bcef31125ab4b4f9eb45154f 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
+check_exit '-eq 1' packf - # 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