8279244: test accompaning fix for JDK-8205187 is failing in Windows

Reviewed-by: dcubed, mikael
This commit is contained in:
Vicente Romero 2021-12-23 21:26:31 +00:00
parent a3b1c6b036
commit 4669bcd877

View file

@ -50,8 +50,7 @@ public class NoJavaLangTest {
"}";
private static final String compilerErrorMessage =
"error: Unable to find package java.lang in platform classes\n" +
"1 error";
"error: Unable to find package java.lang in platform classes";
public static void main(String[] args) throws Exception {
new NoJavaLangTest().run();
@ -105,7 +104,7 @@ public class NoJavaLangTest {
.writeAll()
.getOutput(Task.OutputKind.DIRECT);
if (!out.trim().equals(expect)) {
if (!out.trim().startsWith(expect)) {
throw new AssertionError("javac generated error output is not correct");
}
}