X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/880ff2a4f8f33fede426b21858dda31b58ffd27a..605516b7c2e68efcd681478d40b210e6af968d58:/test/prompter/test-prompter diff --git a/test/prompter/test-prompter b/test/prompter/test-prompter index 704f9986..65ed8a96 100755 --- a/test/prompter/test-prompter +++ b/test/prompter/test-prompter @@ -16,6 +16,8 @@ fi setup_test +check_exit '-eq 1' prompter - + 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