langtools/test/tools/javac/modules/IncubatingTest.java
changeset 44573 245bb4e6f983
parent 43270 de9a02e20567
equal deleted inserted replaced
44505:d534f4b43d26 44573:245bb4e6f983
   120                          "--upgrade-module-path", classes.toString(),
   120                          "--upgrade-module-path", classes.toString(),
   121                          "--add-modules", "ALL-SYSTEM",
   121                          "--add-modules", "ALL-SYSTEM",
   122                          "-XDrawDiagnostics")
   122                          "-XDrawDiagnostics")
   123                 .outdir(testClasses)
   123                 .outdir(testClasses)
   124                 .files(findJavaFiles(testSrc))
   124                 .files(findJavaFiles(testSrc))
   125                 .run(Expect.FAIL)
   125                 .run(Expect.SUCCESS)
   126                 .writeAll()
   126                 .writeAll()
   127                 .getOutputLines(Task.OutputKind.DIRECT);
   127                 .getOutputLines(Task.OutputKind.DIRECT);
   128 
   128 
   129         expected = Arrays.asList(
   129         expected = Arrays.asList("");
   130                 "T.java:1:11: compiler.err.package.not.visible: api, (compiler.misc.not.def.access.does.not.read.from.unnamed: api, jdk.i)",
       
   131                 "1 error"
       
   132         );
       
   133 
   130 
   134         if (!expected.equals(log)) {
   131         if (!expected.equals(log)) {
   135             throw new AssertionError("Unexpected output: " + log);
   132             throw new AssertionError("Unexpected output: " + log);
   136         }
   133         }
   137 
   134