This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 2db42df Use case insensitive compare when running on Windows 2db42df is described below commit 2db42df5eb01f54a8232426fd808bb83642e7a23 Author: Jaroslav Tulach <jaroslav.tul...@oracle.com> AuthorDate: Mon Jan 1 20:10:44 2018 +0100 Use case insensitive compare when running on Windows --- .../core/startup/layers/CustomWritableSystemFileSystemTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core.startup/test/unit/src/org/netbeans/core/startup/layers/CustomWritableSystemFileSystemTest.java b/core.startup/test/unit/src/org/netbeans/core/startup/layers/CustomWritableSystemFileSystemTest.java index 7c0abcf..e54d0fc 100644 --- a/core.startup/test/unit/src/org/netbeans/core/startup/layers/CustomWritableSystemFileSystemTest.java +++ b/core.startup/test/unit/src/org/netbeans/core/startup/layers/CustomWritableSystemFileSystemTest.java @@ -22,6 +22,7 @@ import org.netbeans.junit.NbTestCase; import org.openide.filesystems.FileObject; import org.openide.filesystems.FileSystem; import org.openide.filesystems.Repository; +import org.openide.util.Utilities; import org.openide.util.actions.SystemAction; /** @@ -53,7 +54,11 @@ public class CustomWritableSystemFileSystemTest extends NbTestCase { ModuleLayeredFileSystem mlf = (ModuleLayeredFileSystem) writable; assertTrue("Expected fs" + mlf.getWritableLayer(), mlf.getWritableLayer() instanceof PoohFileSystem); PoohFileSystem pooh = (PoohFileSystem)mlf.getWritableLayer(); - assertEquals("Proper value of nb user", getWorkDirPath(), pooh.netbeansUser); + if (Utilities.isWindows()) { + assertEquals("Proper value of nb user", 0, String.CASE_INSENSITIVE_ORDER.compare(getWorkDirPath(), pooh.netbeansUser)); + } else { + assertEquals("Proper value of nb user", getWorkDirPath(), pooh.netbeansUser); + } } public static class PoohFileSystem extends FileSystem { -- To stop receiving notification emails like this one, please contact ['"commits@netbeans.apache.org" <commits@netbeans.apache.org>']. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists