]> diplodocus.org Git - nmh/blobdiff - test/folder/test-sortm
Replaced use of ! with || true, for ultimate Bourne shell compatiblity.
[nmh] / test / folder / test-sortm
index eef5c8a53f85cfa9f038c555ffd3e83cc67a4d25..142f5225dafd8b8cd70de9a4acb48516050642dc 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
+sortm - >/dev/null 2>&1 || true  # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
@@ -37,7 +39,8 @@ Usage: sortm [+folder] [msgs] [switches]
   -help
 EOF
 
-run_prog sortm -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog sortm -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 # check -version