Skip to contentSkip to conversation

tests: allow e2fsck tests to run on OS/X

PATCH New Andreas Dilger 1 participant 1 message Jun 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tests/test_one.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tests/test_one.in +1 -1
index 238b4b7..d053fd7 100644
@@ -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
Signature · 1 line
1.7.3.4