langtools/test/tools/javac/modules/InheritRuntimeEnvironmentTest.java
changeset 40513 39b67170b045
parent 40308 274367a99f98
child 40514 fa42e8040550
equal deleted inserted replaced
40512:b9359154240c 40513:39b67170b045
   126         // This is the test, to verify that the module being compiled will not be able to read
   126         // This is the test, to verify that the module being compiled will not be able to read
   127         // modules on the module path when a --limit-modules is used
   127         // modules on the module path when a --limit-modules is used
   128         new TestCase(base)
   128         new TestCase(base)
   129                 .testOpts("--module-path", modules.toString(), "--limit-modules", "jdk.compiler")
   129                 .testOpts("--module-path", modules.toString(), "--limit-modules", "jdk.compiler")
   130                 .otherOpts("-XDrawDiagnostics",
   130                 .otherOpts("-XDrawDiagnostics",
   131                         "--module-source-path", src.toString())
   131                         "--module-source-path", src.toString(),
       
   132                         "-classpath", "")
   132                 .files(findJavaFiles(src))
   133                 .files(findJavaFiles(src))
   133                 .expect(Task.Expect.FAIL, "compiler.err.module.not.found")
   134                 .expect(Task.Expect.FAIL, "compiler.err.module.not.found")
   134                 .run();
   135                 .run();
   135     }
   136     }
   136 
   137