[PATCH] tests: allow e2fsck tests to run on OS/X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 tests/test_one.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/test_one.in b/tests/test_one.in
index 238b4b7..d053fd7 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
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux