8039466: Tests failing in langtools repository
Fixing tests broken by JDK-8038455. Reviewed-by: jjg
This commit is contained in:
parent
e5c8101894
commit
5905e8f494
@ -75,7 +75,8 @@ public class TestBadProcessor {
|
|||||||
"javax.annotation.processing.Processor: " +
|
"javax.annotation.processing.Processor: " +
|
||||||
"Provider AnnoProc could not be instantiated: java.lang.Error\n" +
|
"Provider AnnoProc could not be instantiated: java.lang.Error\n" +
|
||||||
"1 error";
|
"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);
|
System.err.println("expected: " + expect);
|
||||||
error("output not as expected");
|
error("output not as expected");
|
||||||
}
|
}
|
||||||
|
@ -29,9 +29,9 @@
|
|||||||
* @library /tools/javac/lib/
|
* @library /tools/javac/lib/
|
||||||
* @clean *
|
* @clean *
|
||||||
* @build OverwriteBetweenCompilations ToolBox JavacTestingAbstractProcessor
|
* @build OverwriteBetweenCompilations ToolBox JavacTestingAbstractProcessor
|
||||||
* @compile/ref=OverwriteBetweenCompilations_1.out -processor OverwriteBetweenCompilations -Apass=1 -XDrawDiagnostics OverwriteBetweenCompilationsSource.java
|
* @compile/ref=OverwriteBetweenCompilations_1.out -processor OverwriteBetweenCompilations -Apass=1 -parameters -XDrawDiagnostics OverwriteBetweenCompilationsSource.java
|
||||||
* @compile/ref=OverwriteBetweenCompilations_2.out -processor OverwriteBetweenCompilations -Apass=2 -XDrawDiagnostics OverwriteBetweenCompilationsSource.java
|
* @compile/ref=OverwriteBetweenCompilations_2.out -processor OverwriteBetweenCompilations -Apass=2 -parameters -XDrawDiagnostics OverwriteBetweenCompilationsSource.java
|
||||||
* @compile/ref=OverwriteBetweenCompilations_3.out -processor OverwriteBetweenCompilations -Apass=3 -XDrawDiagnostics OverwriteBetweenCompilationsSource.java
|
* @compile/ref=OverwriteBetweenCompilations_3.out -processor OverwriteBetweenCompilations -Apass=3 -parameters -XDrawDiagnostics OverwriteBetweenCompilationsSource.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user