]> diplodocus.org Git - nmh/blobdiff - test/mhical/test-mhical
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / mhical / test-mhical
index fb8025084d23d1ee5aa5b947cfa310e231d86909..edb78a241ffd4a545897f0eec79a7d48a2a38941 100755 (executable)
@@ -16,9 +16,10 @@ fi
 
 setup_test
 
 
 setup_test
 
+mhical - >/dev/null 2>&1 || true  # gcov
+
 #### Make sure that html-to-text conversion is what we expect.
 #### 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
 
 #### Disable colorized output.
 TERM=dumb; export TERM
@@ -46,7 +47,8 @@ Usage: mhical [switches]
   -help
 EOF
 
   -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"
 
 
 check "$expected" "$actual"