equal
deleted
inserted
replaced
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 |