]> diplodocus.org Git - nmh/blobdiff - test/slocal/test-slocal
Review inc.man.
[nmh] / test / slocal / test-slocal
index 3fb73b2440f2071825e2c09eb1c78c4400244cd6..1213117b00fc39e2dfdeb910cf77cc4ca0650e14 100755 (executable)
@@ -19,6 +19,8 @@ setup_test
 # Use proper program, maybe not the first one on PATH.
 slocal="$MH_LIBEXEC_DIR"/slocal
 
+check_exit '-eq 1' $slocal -
+
 expected="$MH_TEST_DIR"/$$.expected
 actual="$MH_TEST_DIR"/$$.actual
 actual2="$MH_TEST_DIR"/$$.actual2
@@ -42,7 +44,8 @@ Usage: slocal [switches]
   -help
 EOF
 
-run_prog $slocal -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog $slocal -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version