]> diplodocus.org Git - nmh/blobdiff - test/format/test-fmtdump
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
[nmh] / test / format / test-fmtdump
index 73fd14de19d84174583d4b752650ea71b6645e27..259e12a202cf9b0c5e338ecec7560bd17e2a22b7 100755 (executable)
@@ -35,8 +35,9 @@ Usage: fmtdump [switches]
   -help
 EOF
 
-$fmtdump -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+"$fmtdump" -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 # check -version
 case `$fmtdump -v` in