X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9383ac2311caa190a93fd6694c6c82390cabf044..24ca4cf3b0f5e02735ea716163a880b2b5cc8b49:/test/mkstemp/test-mkstemp diff --git a/test/mkstemp/test-mkstemp b/test/mkstemp/test-mkstemp index fcc8cd57..2ff99f22 100755 --- a/test/mkstemp/test-mkstemp +++ b/test/mkstemp/test-mkstemp @@ -20,6 +20,9 @@ expected="$MH_TEST_DIR"/$$.expected 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" @@ -48,7 +51,7 @@ else 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"