]> 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 704f998..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
@@ -36,7 +38,7 @@ Usage: prompter [switches] file
 EOF
 
 #### Skip nmh intro text.
-run_prog prompter -help | sed '/^$/Q' >"$actual" 2>&1
+run_prog prompter -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version