]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvtty
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / rcv / test-rcvtty
index f0c58d1..4cef2b8 100755 (executable)
@@ -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"
+
+$rcvtty - >/dev/null 2>&1 || true  # gcov
 
 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