X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/fa462ef71fbaf819397c59b2c07adf45a04af9f8..11eaebe50c6562b8919bc8d2a457c87269083818:/test/inc/test-msgchk diff --git a/test/inc/test-msgchk b/test/inc/test-msgchk index 066058b8..173a76df 100755 --- a/test/inc/test-msgchk +++ b/test/inc/test-msgchk @@ -18,6 +18,8 @@ fi setup_test +check_exit '-eq 1' msgchk - + expected=$MH_TEST_DIR/$$.expected expected_err=$MH_TEST_DIR/$$.expected_err actual=$MH_TEST_DIR/$$.actual @@ -39,7 +41,7 @@ Usage: msgchk [switches] [users ...] -help EOF -run_prog msgchk -help | head -9 >"$actual" 2>&1 +run_prog msgchk -help 2>&1 | head -9 >"$actual" check "$expected" "$actual" # check -version @@ -57,7 +59,7 @@ run_test 'msgchk' "You don't have any mail waiting" # Use maildrop specified in mts.conf, i.e., # ${MH_TEST_DIR}/Mail/maildrop, which should not yet exist. -"${MH_LIB_DIR}"/rcvpack <"${MH_TEST_DIR}"/Mail/inbox/1 \ +"${MH_LIBEXEC_DIR}"/rcvpack <"${MH_TEST_DIR}"/Mail/inbox/1 \ "${MH_TEST_DIR}"/Mail/maildrop # check with no arguments and mail waiting