-# check -suffix
-tmpfile=`$mkstemp -suffix .txt`
-[ -f "$tmpfile" ] && rm "$tmpfile" || failed=`expr ${failed:-0} + 1`
-check_tmpfile=`echo $tmpfile | grep '^......\.txt$' >/dev/null`
-run_test `echo $check_tmpfile` ''
+if [ $has_mkstemps -eq 1 ]; then
+ # check -suffix
+ tmpfile=`$mkstemp -suffix .txt`
+ [ -f "$tmpfile" ] && rm "$tmpfile" || failed=`expr ${failed:-0} + 1`
+ check_tmpfile=`echo $tmpfile | grep '^......\.txt$' >/dev/null`
+ run_test `echo $check_tmpfile` ''
+fi