From: Andreas Dilger Date: Tue, 12 Jun 2012 17:59:56 +0000 (-0400) Subject: tests: allow e2fsck tests to run on OS/X X-Git-Tag: v1.42.4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff07d436fc092427d609c34f630fd1c36e58e121;p=thirdparty%2Fe2fsprogs.git 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 Signed-off-by: Theodore Ts'o --- diff --git a/tests/test_one.in b/tests/test_one.in index 238b4b7c9..d053fd71e 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