]> diplodocus.org Git - nmh/blobdiff - test/prompter/test-prompter
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / prompter / test-prompter
index 9a25bc0..f36c0d8 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
+prompter - >/dev/null 2>&1 || true  # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
 actual=$MH_TEST_DIR/$$.actual
@@ -35,8 +37,9 @@ Usage: prompter [switches] file
   -help
 EOF
 
-run_prog prompter -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+run_prog prompter -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 # check -version
 case `prompter -v` in