X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/880ff2a4f8f33fede426b21858dda31b58ffd27a..0c8ff9a0a39209d43f46cef806de5acaa714dfed:/test/rcv/test-rcvtty?ds=inline diff --git a/test/rcv/test-rcvtty b/test/rcv/test-rcvtty index 800d0fba..a2cf6ca6 100755 --- a/test/rcv/test-rcvtty +++ b/test/rcv/test-rcvtty @@ -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