]> diplodocus.org Git - nmh/blobdiff - test/slocal/test-slocal
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / slocal / test-slocal
index 800a16f96672d3621db1808e17e8ecd28436b54f..6468de517f5670bd45ea0c1b9a3e090ef6bc6122 100755 (executable)
@@ -19,6 +19,8 @@ setup_test
 # Use proper program, maybe not the first one on PATH.
 slocal="$MH_LIBEXEC_DIR"/slocal
 
+$slocal - >/dev/null 2>&1 || true  # gcov
+
 expected="$MH_TEST_DIR"/$$.expected
 actual="$MH_TEST_DIR"/$$.actual
 actual2="$MH_TEST_DIR"/$$.actual2
@@ -43,7 +45,7 @@ Usage: slocal [switches]
 EOF
 
 #### Skip nmh intro text.
-run_prog $slocal -help | sed '/^$/Q' >"$actual" 2>&1
+run_prog $slocal -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version