mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8164550: tools/javac/modules/InheritRuntimeEnvironmentTest.java fails on Windows after JDK-8153391
Empty classpath is not working on Windows; using a classpath consisting on a sole empty dir Reviewed-by: mcimadamore
This commit is contained in:
parent
53cd7b54fa
commit
f65c3ae869
1 changed files with 5 additions and 1 deletions
|
@ -123,13 +123,17 @@ public class InheritRuntimeEnvironmentTest extends ModuleTestBase {
|
|||
.files(findJavaFiles(src))
|
||||
.run();
|
||||
|
||||
Path emptyClassPath = base.resolve("emptyClassPath");
|
||||
|
||||
Files.createDirectories(emptyClassPath);
|
||||
|
||||
// This is the test, to verify that the module being compiled will not be able to read
|
||||
// modules on the module path when a --limit-modules is used
|
||||
new TestCase(base)
|
||||
.testOpts("--module-path", modules.toString(), "--limit-modules", "jdk.compiler")
|
||||
.otherOpts("-XDrawDiagnostics",
|
||||
"--module-source-path", src.toString(),
|
||||
"-classpath", "")
|
||||
"-classpath", emptyClassPath.toString())
|
||||
.files(findJavaFiles(src))
|
||||
.expect(Task.Expect.FAIL, "compiler.err.module.not.found")
|
||||
.run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue