Browse Source

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
master
Stefan Bodewig 17 years ago
parent
commit
82d7b730e3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java

+ 2
- 1
src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java View File

@@ -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")) {


Loading…
Cancel
Save