]> diplodocus.org Git - nmh/blobdiff - test/mkstemp/test-mkstemp
man: Use `.B' instead of `.BR' when only one argument.
[nmh] / test / mkstemp / test-mkstemp
index fcc8cd57284450219c34163ecdd2a943aee89e54..2ff99f22c6f8367a651547108ab4e2a714b93d4f 100755 (executable)
@@ -20,6 +20,9 @@ expected="$MH_TEST_DIR"/$$.expected
 actual="$MH_TEST_DIR"/$$.actual
 
 mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
 actual="$MH_TEST_DIR"/$$.actual
 
 mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
+
+check_exit '-eq 1' $mkstemp -
+
 $mkstemp -help | grep suffix >/dev/null  &&  has_mkstemps=1  ||  has_mkstemps=0
 
 cd "$MHTMPDIR"
 $mkstemp -help | grep suffix >/dev/null  &&  has_mkstemps=1  ||  has_mkstemps=0
 
 cd "$MHTMPDIR"
@@ -48,7 +51,7 @@ else
 fi
 
 #### Skip nmh intro text.
 fi
 
 #### Skip nmh intro text.
-run_prog $mkstemp -h | sed '/^$/,$d' >"$actual" 2>&1
+run_prog $mkstemp -h 2>&1 | sed '/^$/,$d' >"$actual"
 check "$expected" "$actual"
 
 
 check "$expected" "$actual"