langtools/test/tools/javac/processing/errors/TestBadProcessor.java
changeset 23811 4bbbcaad653f
parent 23810 b92eb80925f0
child 30730 d3ce7619db2c
equal deleted inserted replaced
23810:b92eb80925f0 23811:4bbbcaad653f
    73         String expect = "error: Bad service configuration file, " +
    73         String expect = "error: Bad service configuration file, " +
    74                 "or exception thrown while constructing Processor object: " +
    74                 "or exception thrown while constructing Processor object: " +
    75                 "javax.annotation.processing.Processor: " +
    75                 "javax.annotation.processing.Processor: " +
    76                 "Provider AnnoProc could not be instantiated: java.lang.Error\n" +
    76                 "Provider AnnoProc could not be instantiated: java.lang.Error\n" +
    77                 "1 error";
    77                 "1 error";
    78         if (!out.trim().equals(expect)) {
    78         String lineSeparator = System.getProperty("line.separator");
       
    79         if (!out.trim().replace(lineSeparator, "\n").equals(expect)) {
    79             System.err.println("expected: " + expect);
    80             System.err.println("expected: " + expect);
    80             error("output not as expected");
    81             error("output not as expected");
    81         }
    82         }
    82 
    83 
    83         if (rc == 0) {
    84         if (rc == 0) {