From: Ben Pfaff Date: Sun, 10 Jul 2011 22:51:13 +0000 (-0700) Subject: tests: Avoid nonportable "mktemp" usage. X-Git-Tag: v0.7.9~216 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b30bfd6dd3f8ce0218d6ec4cae3796fc87cb86e;p=pspp-builds.git tests: Avoid nonportable "mktemp" usage. Jeremy Lavergne reported that mktemp on Mac OS X does not have a -p option. But I don't see a reason to use mktemp at all here, so this commit uses a fixed name instead. --- diff --git a/tests/libpspp/zip.at b/tests/libpspp/zip.at index a725049e..55bf563f 100644 --- a/tests/libpspp/zip.at +++ b/tests/libpspp/zip.at @@ -14,7 +14,7 @@ mkdir -p $dir1 names="" s=1; while test $s -le 8192 ; do - name=`mktemp -p $dir1`; + name=$dir1/$s dd if=/dev/urandom of=$name count=1 bs=$s 2> /dev/null s=$(($s * 2)); bn=`basename $name`;