8039466: Tests failing in langtools repository

Fixing tests broken by JDK-8038455.

Reviewed-by: jjg
This commit is contained in:
Jan Lahoda 2014-04-08 23:33:50 +02:00
parent e5c8101894
commit 5905e8f494
2 changed files with 5 additions and 4 deletions

View file

@ -75,7 +75,8 @@ public class TestBadProcessor {
"javax.annotation.processing.Processor: " +
"Provider AnnoProc could not be instantiated: java.lang.Error\n" +
"1 error";
if (!out.trim().equals(expect)) {
String lineSeparator = System.getProperty("line.separator");
if (!out.trim().replace(lineSeparator, "\n").equals(expect)) {
System.err.println("expected: " + expect);
error("output not as expected");
}