From 82d7b730e37446869320a4b8479f0321ab60125e Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 4 Mar 2008 12:42:46 +0000 Subject: [PATCH] Test failed on Windows since the file has never been created (and thus never had the wrong case) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@633454 13f79535-47bb-0310-9956-ffa450edef68 --- src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java b/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java index baeffb794..835d6dd3d 100644 --- a/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java +++ b/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java @@ -575,7 +575,8 @@ public class FileUtilsTest extends TestCase { public void testHasErrorInCase() { File tempFolder = new File(System.getProperty("java.io.tmpdir")); - File wellcased = FILE_UTILS.createTempFile("alpha", "beta", tempFolder); + File wellcased = FILE_UTILS.createTempFile("alpha", "beta", tempFolder, + true, true); String s = wellcased.getName().toUpperCase(); File wrongcased = new File(tempFolder, s); if (Os.isFamily("dos")) {