]> diplodocus.org Git - nmh/blobdiff - test/whom/test-whom
mhlsbr.c: Use variable for strncpy(3)'s size, not sizeof.
[nmh] / test / whom / test-whom
index 8a5a656e595e0f5af7d8339b243ea3d60fb31204..6563a7e4ab33c67fc9926520e463dca779b566ca 100755 (executable)
@@ -19,7 +19,7 @@ fi
 
 setup_test
 
 
 setup_test
 
-whom - >/dev/null 2>&1 || true  # gcov
+check_exit '-eq 1' whom -
 
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
@@ -50,7 +50,7 @@ Usage: whom [switches] [file]
   -help
 EOF
 
   -help
 EOF
 
-run_prog whom -help | head -10 >$actual 2>&1
+run_prog whom -help 2>&1 | head -10 >$actual
 check $expected $actual
 
 # check -version
 check $expected $actual
 
 # check -version