]> diplodocus.org Git - nmh/blobdiff - test/mhical/test-mhical
ap: Fix write past end of addrs[] array.
[nmh] / test / mhical / test-mhical
index fb8025084d23d1ee5aa5b947cfa310e231d86909..85962f29123fa7d1b36051f8895d85136035a045 100755 (executable)
@@ -16,9 +16,10 @@ fi
 
 setup_test
 
+check_exit '-eq 1' mhical -
+
 #### Make sure that html-to-text conversion is what we expect.
-require_locale en_US.utf-8 en_US.utf8
-LC_ALL=en_US.UTF-8; export LC_ALL
+require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
 
 #### Disable colorized output.
 TERM=dumb; export TERM
@@ -46,7 +47,8 @@ Usage: mhical [switches]
   -help
 EOF
 
-run_prog mhical -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog mhical -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"