X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/fa462ef71fbaf819397c59b2c07adf45a04af9f8..a30ef3465250ae21bb3928a6e120ba4351cf8ff0:/test/rcv/test-rcvtty diff --git a/test/rcv/test-rcvtty b/test/rcv/test-rcvtty index f0c58d14..a2cf6ca6 100755 --- a/test/rcv/test-rcvtty +++ b/test/rcv/test-rcvtty @@ -17,7 +17,9 @@ fi setup_test # Use proper program, likely not the first one on PATH. -rcvtty="${MH_LIB_DIR}/rcvtty" +rcvtty="${MH_LIBEXEC_DIR}/rcvtty" + +check_exit '-eq 1' $rcvtty - expected="$MH_TEST_DIR/$$.expected" actual="$MH_TEST_DIR/$$.actual" @@ -37,7 +39,8 @@ Usage: rcvtty [command ...] -help EOF -run_prog $rcvtty -help >"$actual" 2>&1 +#### Skip nmh intro text. +run_prog "$rcvtty" -help | sed '/^$/,$d' >"$actual" 2>&1 check "$expected" "$actual" # check -version