]> diplodocus.org Git - nmh/blobdiff - test/folder/test-packf
ali: Fix a memory leak spotted by valgrind.
[nmh] / test / folder / test-packf
index ff98cef52bbd01a3b470ee93810e7734fb07fd95..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"
 
@@ -31,7 +33,8 @@ Usage: packf [+folder] [msgs] [switches]
   -help
 EOF
 
-packf -help >"$actual" 2>&1
+#### Skip nmh intro text.
+packf -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version