aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Dilger <adilger@whamcloud.com>2012-06-12 13:59:56 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-06-12 13:59:56 -0400
commitff07d436fc092427d609c34f630fd1c36e58e121 (patch)
treee0d81c7db65dba41ee6f08648056b968f659e74c /tests
parente130a16e83d8f039cab692393ceaf43d66c8add1 (diff)
downloade2fsprogs-ff07d436fc092427d609c34f630fd1c36e58e121.tar.gz
e2fsprogs-ff07d436fc092427d609c34f630fd1c36e58e121.tar.xz
e2fsprogs-ff07d436fc092427d609c34f630fd1c36e58e121.zip
tests: allow e2fsck tests to run on OS/X
The "mktemp" program requires a template on OS/X. Allow the test TMPFILE to be created in the local /tmp directory for both OS/X and Linux. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_one.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_one.in b/tests/test_one.in
index 238b4b7c..d053fd71 100644
--- a/tests/test_one.in
+++ b/tests/test_one.in
@@ -28,7 +28,7 @@ fi
. $TEST_CONFIG
-TMPFILE=$(mktemp)
+TMPFILE=$(mktemp -t e2fsprogs-tmp.XXXXXX)
test_name=`echo $test_dir | sed -e 's;.*/;;'`
if [ -f $test_dir ] ; then