From 9f64412c0b41c76678147ce5d72e4fbd885426f2 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Thu, 3 Jul 2008 21:19:13 +0000 Subject: [PATCH] disable ErrorInCase check on osx git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@673813 13f79535-47bb-0310-9956-ffa450edef68 --- src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java | 4 +++- 1 file changed, 3 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 835d6dd3d..9b3e8a048 100644 --- a/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java +++ b/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java @@ -579,7 +579,9 @@ public class FileUtilsTest extends TestCase { true, true); String s = wellcased.getName().toUpperCase(); File wrongcased = new File(tempFolder, s); - if (Os.isFamily("dos")) { + if (Os.isFamily("mac") && Os.isFamily("unix")) { + //no guarantees on filesystem case-sensitivity + } else if (Os.isFamily("dos")) { assertTrue(FILE_UTILS.hasErrorInCase(wrongcased)); assertFalse(FILE_UTILS.hasErrorInCase(wellcased)); } else {