]> 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 b3f20eb634be0566679cc7657428306c87ac402c..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
 
@@ -33,6 +35,8 @@ This is a draft message.
 EOF
 
 # check -help
+# Only look at first 10 lines because the rest depend on
+# whether sasl support was configured in.
 cat >$expected <<EOF
 Usage: whom [switches] [file]
   switches are:
@@ -44,13 +48,9 @@ Usage: whom [switches] [file]
   -nodraftfolder
   -version
   -help
-  -sasl
-  -saslmech mechanism
-  -user username
-  -(port) server port name/number
 EOF
 
-whom -help >$actual 2>&1
+run_prog whom -help 2>&1 | head -10 >$actual
 check $expected $actual
 
 # check -version