]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvtty
mhshow: Avoid SEGV when user's command has two or fewer words.
[nmh] / test / rcv / test-rcvtty
index 4cef2b81444d27664783c08b016b96a50f49d7df..fdc74d44649545708d131b0aad9abb2ad598e06a 100755 (executable)
@@ -19,7 +19,7 @@ setup_test
 # Use proper program, likely not the first one on PATH.
 rcvtty="${MH_LIBEXEC_DIR}/rcvtty"
 
-$rcvtty - >/dev/null 2>&1 || true  # gcov
+check_exit '-eq 1' $rcvtty -
 
 expected="$MH_TEST_DIR/$$.expected"
 actual="$MH_TEST_DIR/$$.actual"
@@ -40,7 +40,7 @@ Usage: rcvtty [command ...]
 EOF
 
 #### Skip nmh intro text.
-run_prog "$rcvtty" -help | sed '/^$/,$d' >"$actual" 2>&1
+run_prog "$rcvtty" -help 2>&1 | sed '/^$/,$d' >"$actual"
 check "$expected" "$actual"
 
 # check -version