]> diplodocus.org Git - nmh/blobdiff - test/repl/test-repl
mh-mkstemp.man: Detail exit status as 255 rather than -1.
[nmh] / test / repl / test-repl
index 20bb96d79e2a12ba4080946925b4db855f3fe0bb..7de80246e872ff261b581ec640a496e6667ab8b3 100755 (executable)
@@ -19,6 +19,8 @@ fi
 
 setup_test
 
 
 setup_test
 
+check_exit '-eq 1' repl - # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/Mail/draft
 
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/Mail/draft
 
@@ -55,8 +57,9 @@ Usage: repl: [+folder] [msg] [switches]
   -nofmtproc
 EOF
 
   -nofmtproc
 EOF
 
-run_prog repl -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+run_prog repl -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 # check -version
 case `repl -v` in
 
 # check -version
 case `repl -v` in