]> 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 15272af76a3a22ffa3e06ac9e034dce07a76e4e8..d15e047db9da13c199f15c66f2d2bcdd3ae8aab3 100755 (executable)
@@ -19,6 +19,8 @@ setup_test
 # Use proper program, likely not the first one on PATH.
 rcvpack="${MH_LIBEXEC_DIR}/rcvpack"
 
+$rcvpack - >/dev/null 2>&1 || true  # gcov
+
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
 
@@ -34,7 +36,7 @@ Usage: rcvpack [switches] file
 EOF
 
 #### Skip nmh intro text.
-run_prog "$rcvpack" -help | sed '/^$/Q' >"$actual" 2>&1
+run_prog "$rcvpack" -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version