From patchwork Mon Jun 11 07:49:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: tests: allow e2fsck tests to run on OS/X X-Patchwork-Submitter: Andreas Dilger X-Patchwork-Id: 164090 Message-Id: <1339400960-26140-1-git-send-email-adilger@whamcloud.com> To: tytso@mit.edu, linux-ext4@vger.kernel.org Cc: Andreas Dilger Date: Mon, 11 Jun 2012 01:49:20 -0600 From: Andreas Dilger List-Id: 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 --- 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