]> diplodocus.org Git - nmh/blobdiff - test/mhical/test-mhical
mhlsbr.c: Use variable for strncpy(3)'s size, not sizeof.
[nmh] / test / mhical / test-mhical
index 930c35f694a3ac0faa4ea36d8bd56a0b805f14ec..72c55f5de4fe379a79ca1c46cc6d6bb8ab3a8dd6 100755 (executable)
@@ -49,7 +49,7 @@ Usage: mhical [switches]
 EOF
 
 #### Skip nmh intro text.
-run_prog mhical -help | sed '/^$/,$d' >"$actual" 2>&1
+run_prog mhical -help 2>&1 | sed '/^$/,$d' >"$actual"
 check "$expected" "$actual"
 
 
@@ -874,5 +874,10 @@ check "$expected" "$actual"
 check "$expected_err" "$actual_err"
 
 
+# check null input
+start_test "null input"
+check_exit '-eq 0' mhical </dev/null
+
+
 finish_test
 exit $failed