]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvtty
Fixed forw.man to pass test-manpages.
[nmh] / test / rcv / test-rcvtty
index 800d0fba0c266469fdb1a63168de4990e6b1ea68..a2cf6ca63728e56ba1b601f72515e6e372daaafd 100755 (executable)
@@ -19,6 +19,8 @@ setup_test
 # Use proper program, likely not the first one on PATH.
 rcvtty="${MH_LIBEXEC_DIR}/rcvtty"
 
+check_exit '-eq 1' $rcvtty -
+
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
 
@@ -38,7 +40,7 @@ Usage: rcvtty [command ...]
 EOF
 
 #### Skip nmh intro text.
-run_prog "$rcvtty" -help | sed '/^$/Q' >"$actual" 2>&1
+run_prog "$rcvtty" -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version