]> 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 b53bb0862ea4882b7d36acb5b019b06734d97776..6563a7e4ab33c67fc9926520e463dca779b566ca 100755 (executable)
@@ -19,6 +19,8 @@ fi
 
 setup_test
 
+check_exit '-eq 1' whom -
+
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
@@ -48,7 +50,7 @@ Usage: whom [switches] [file]
   -help
 EOF
 
-whom -help | head -10 >$actual 2>&1
+run_prog whom -help 2>&1 | head -10 >$actual
 check $expected $actual
 
 # check -version