diff options
author | Stephan Herrmann | 2018-10-02 12:41:19 +0000 |
---|---|---|
committer | Stephan Herrmann | 2018-10-02 20:01:14 +0000 |
commit | 0f1fd9ab28f3ce3f73952cecc7a2fe7b62874224 (patch) | |
tree | f00345d355e665ea5b5c8b4ce04803bb755e2fa8 | |
parent | 0bd9a606e492d961b9b9d6e70b59e938957909d3 (diff) | |
download | eclipse.jdt.core-0f1fd9ab28f3ce3f73952cecc7a2fe7b62874224.tar.gz eclipse.jdt.core-0f1fd9ab28f3ce3f73952cecc7a2fe7b62874224.tar.xz eclipse.jdt.core-0f1fd9ab28f3ce3f73952cecc7a2fe7b62874224.zip |
Bug 516542 - [test] ClasspathTests.testEncoding1 errorI20181002-1800
Change-Id: If03ef8b40d5d48fd151f59095f58cc2681abec48
-rw-r--r-- | org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java index 9aaca4623a..1fed55bda3 100644 --- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java +++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java @@ -24,6 +24,7 @@ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.URI; +import java.nio.file.InvalidPathException; import java.util.Hashtable; import java.util.Map; @@ -2932,7 +2933,13 @@ public void testEmptyClasspath() throws CoreException { */ public void testEncoding1() throws CoreException { try { - createJavaProject("P", new String[] {"src\u3400"}, "bin"); + try { + createJavaProject("P", new String[] {"src\u3400"}, "bin"); + } catch (InvalidPathException e) { + System.err.println("File system cannot handle UTF-8 path: "+e.getMessage()); + System.err.println("Skipping ClasspathTests.testEncoding1"); + return; + } IFile file = getFile("/P/.classpath"); String encodedContents = new String (org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(file, "UTF-8")); encodedContents = Util.convertToIndependantLineDelimiter(encodedContents); |