mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8279244: test accompaning fix for JDK-8205187 is failing in Windows
Reviewed-by: dcubed, mikael
This commit is contained in:
parent
a3b1c6b036
commit
4669bcd877
1 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue