]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvpack
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / rcv / test-rcvpack
index ae2b294cf455f30884aef600f297ec6439137f4e..d15e047db9da13c199f15c66f2d2bcdd3ae8aab3 100755 (executable)
@@ -17,7 +17,9 @@ fi
 setup_test
 
 # Use proper program, likely not the first one on PATH.
-rcvpack="${MH_LIB_DIR}/rcvpack"
+rcvpack="${MH_LIBEXEC_DIR}/rcvpack"
+
+$rcvpack - >/dev/null 2>&1 || true  # gcov
 
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
@@ -33,7 +35,8 @@ Usage: rcvpack [switches] file
   -help
 EOF
 
-run_prog $rcvpack -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog "$rcvpack" -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version