X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/880ff2a4f8f33fede426b21858dda31b58ffd27a..dbdbd49d59ae5c14e66b1c148a63b8abc9d076ab:/test/mhpath/test-mhpath diff --git a/test/mhpath/test-mhpath b/test/mhpath/test-mhpath index cf2ab5d7..e7209ce3 100755 --- a/test/mhpath/test-mhpath +++ b/test/mhpath/test-mhpath @@ -16,6 +16,8 @@ fi setup_test +check_exit '-eq 1' mhpath - + expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual @@ -29,7 +31,7 @@ Usage: mhpath [+folder] [msgs] [switches] EOF #### Skip nmh intro text. -run_prog mhpath -help | sed '/^$/Q' >"$actual" 2>&1 +run_prog mhpath -help | sed '/^$/,$d' >"$actual" 2>&1 check "$expected" "$actual" # check -version @@ -128,7 +130,7 @@ EOF run_prog mhpath first:2 > $actual 2>&1 check $expected $actual -# check reference to non-existant messages +# check reference to non-existent messages cat > $expected <