Skip to content

Commit 4669bcd

Browse files
author
Vicente Romero
committed
8279244: test accompaning fix for JDK-8205187 is failing in Windows
Reviewed-by: dcubed, mikael
1 parent a3b1c6b commit 4669bcd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/langtools/tools/javac/fatalErrors/NoJavaLangTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public class NoJavaLangTest {
5050
"}";
5151

5252
private static final String compilerErrorMessage =
53-
"error: Unable to find package java.lang in platform classes\n" +
54-
"1 error";
53+
"error: Unable to find package java.lang in platform classes";
5554

5655
public static void main(String[] args) throws Exception {
5756
new NoJavaLangTest().run();
@@ -105,7 +104,7 @@ private void test(String[] options, String expect) {
105104
.writeAll()
106105
.getOutput(Task.OutputKind.DIRECT);
107106

108-
if (!out.trim().equals(expect)) {
107+
if (!out.trim().startsWith(expect)) {
109108
throw new AssertionError("javac generated error output is not correct");
110109
}
111110
}

0 commit comments

Comments
 (0)