X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/46f35e659f3bc3e808a70263bea0ec72624c8a08..213e031dda6a34c50c04de0d6041f45ab2db0a91:/test/mkstemp/test-mkstemp?ds=inline diff --git a/test/mkstemp/test-mkstemp b/test/mkstemp/test-mkstemp index 084f649a..97896e48 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 255' $mkstemp - + $mkstemp -help | grep suffix >/dev/null && has_mkstemps=1 || has_mkstemps=0 cd "$MHTMPDIR" @@ -47,8 +50,9 @@ else EOF fi -$mkstemp -h >$actual 2>&1 -check $expected $actual +#### Skip nmh intro text. +run_prog $mkstemp -h | sed '/^$/,$d' >"$actual" 2>&1 +check "$expected" "$actual" # check -version