From 8b30bfd6dd3f8ce0218d6ec4cae3796fc87cb86e Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@cs.stanford.edu>
Date: Sun, 10 Jul 2011 15:51:13 -0700
Subject: [PATCH] tests: Avoid nonportable "mktemp" usage.

Jeremy Lavergne <jeremy@lavergne.gotdns.org> 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.
---
 tests/libpspp/zip.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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`;
-- 
2.30.2