]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvtty
Replace getcpy() with mh_xstrdup().
[nmh] / test / rcv / test-rcvtty
index 1d0fea8cdc0244f87d22c37850a01f983a4dda8c..4f1d4988ad4ebe0c6e31e220b1dc7ff53f3e17af 100755 (executable)
@@ -17,7 +17,7 @@ fi
 setup_test
 
 # Use proper program, likely not the first one on PATH.
 setup_test
 
 # Use proper program, likely not the first one on PATH.
-rcvtty="${MH_LIB_DIR}/rcvtty"
+rcvtty="${MH_LIBEXEC_DIR}/rcvtty"
 
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
 
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
@@ -37,7 +37,8 @@ Usage: rcvtty [command ...]
   -help
 EOF
 
   -help
 EOF
 
-$rcvtty -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog "$rcvtty" -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version
 check "$expected" "$actual"
 
 # check -version
@@ -54,7 +55,7 @@ esac
 # any of their ttys.
 cat >"$expected" <<EOF
 EOF
 # any of their ttys.
 cat >"$expected" <<EOF
 EOF
-$rcvtty <${MH_TEST_DIR}/Mail/inbox/1 -biff >"$actual" 2>&1
+run_prog $rcvtty <${MH_TEST_DIR}/Mail/inbox/1 -biff >"$actual" 2>&1
 check "$expected" "$actual"
 
 
 check "$expected" "$actual"