X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/880ff2a4f8f33fede426b21858dda31b58ffd27a..f9754b35f2f3b4c5cb0890f154181d2bab66c679:/test/rcv/test-rcvdist diff --git a/test/rcv/test-rcvdist b/test/rcv/test-rcvdist index 720b1bfe..55c6bf30 100755 --- a/test/rcv/test-rcvdist +++ b/test/rcv/test-rcvdist @@ -19,6 +19,8 @@ setup_test # Use proper program, likely not the first one on PATH. rcvdist="${MH_LIBEXEC_DIR}/rcvdist" +check_exit '-eq 1' $rcvdist - + expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual @@ -33,7 +35,7 @@ Usage: rcvdist [switches] [switches for postproc] address ... EOF #### Skip nmh intro text. -run_prog "$rcvdist" -help | sed '/^$/Q' >"$actual" 2>&1 +run_prog "$rcvdist" -help | sed '/^$/,$d' >"$actual" 2>&1 check "$expected" "$actual" # check -version @@ -65,7 +67,7 @@ test_rcvdist () # fakesendmail drops the message and any cc's into this mbox. mbox="${MH_TEST_DIR}"/Mail/fakesendmail.mbox inc -silent -file "$mbox" - rm -f "$mbox" "$mbox.map" + rm -f "$mbox" # It's hard to calculate the exact Date: header post is going to # use, so we'll just use sed to remove the actual date so we can