]> diplodocus.org Git - nmh/blobdiff - test/anno/test-anno
mh-mkstemp.man: Detail exit status as 255 rather than -1.
[nmh] / test / anno / test-anno
index a9ad95ae440937d58a0f0c477430653a407b9d8f..a7755ed7895c0205be0e1828bd0a9d27de8e3433 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
+check_exit '-eq 1' anno - # 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