]> diplodocus.org Git - nmh/blobdiff - test/anno/test-anno
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / anno / test-anno
index 6d45cacfdd30ebe82fe5c0541f836aad41eba252..f47ae2def900ecf12ed2ce1e90b5239c4f754a91 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
 
 setup_test
 
+anno - >/dev/null 2>&1 || true  # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
 actual=$MH_TEST_DIR/$$.actual
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
 actual=$MH_TEST_DIR/$$.actual
@@ -40,7 +42,7 @@ Usage: anno [+folder] [msgs] [switches]
 EOF
 
 #### Skip nmh intro text.
 EOF
 
 #### Skip nmh intro text.
-run_prog anno -help | sed '/^$/Q' >"$actual" 2>&1
+run_prog anno -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version
 check "$expected" "$actual"
 
 # check -version