]> 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 a9ad95ae440937d58a0f0c477430653a407b9d8f..f47ae2def900ecf12ed2ce1e90b5239c4f754a91 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 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
@@ -39,7 +41,8 @@ Usage: anno [+folder] [msgs] [switches]
   -([no]p)reserve
 EOF
 
-run_prog anno -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog anno -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version