X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/880ff2a4f8f33fede426b21858dda31b58ffd27a..213e031dda6a34c50c04de0d6041f45ab2db0a91:/test/slocal/test-slocal diff --git a/test/slocal/test-slocal b/test/slocal/test-slocal index 800a16f9..1213117b 100755 --- a/test/slocal/test-slocal +++ b/test/slocal/test-slocal @@ -19,6 +19,8 @@ setup_test # Use proper program, maybe not the first one on PATH. slocal="$MH_LIBEXEC_DIR"/slocal +check_exit '-eq 1' $slocal - + expected="$MH_TEST_DIR"/$$.expected actual="$MH_TEST_DIR"/$$.actual actual2="$MH_TEST_DIR"/$$.actual2 @@ -43,7 +45,7 @@ Usage: slocal [switches] EOF #### Skip nmh intro text. -run_prog $slocal -help | sed '/^$/Q' >"$actual" 2>&1 +run_prog $slocal -help | sed '/^$/,$d' >"$actual" 2>&1 check "$expected" "$actual" # check -version