]> diplodocus.org Git - nmh/blobdiff - test/mkstemp/test-mkstemp
Specify yyyy-mm-dd date format for a man page's .TH date.
[nmh] / test / mkstemp / test-mkstemp
index 94ce05677776a2c605d85b0bb69d3c99db64d193..97896e48884528a556a73ff2617a02aaea2b64fe 100755 (executable)
@@ -20,6 +20,9 @@ expected="$MH_TEST_DIR"/$$.expected
 actual="$MH_TEST_DIR"/$$.actual
 
 mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
+
+check_exit '-eq 255' $mkstemp -
+
 $mkstemp -help | grep suffix >/dev/null  &&  has_mkstemps=1  ||  has_mkstemps=0
 
 cd "$MHTMPDIR"
@@ -48,7 +51,7 @@ else
 fi
 
 #### Skip nmh intro text.
-run_prog $mkstemp -h | sed '/^$/Q' >"$actual" 2>&1
+run_prog $mkstemp -h | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"