187 return sw.toString(); |
187 return sw.toString(); |
188 } |
188 } |
189 |
189 |
190 void verify(String output) { |
190 void verify(String output) { |
191 System.out.println(output); |
191 System.out.println(output); |
192 if (output.startsWith("Classfile")) { |
192 output = output.substring(output.indexOf("Test.java")); |
193 // make sure to ignore filename |
|
194 output = output.substring(output.indexOf('\n')); |
|
195 } |
|
196 if (output.indexOf("-") >= 0) |
193 if (output.indexOf("-") >= 0) |
197 throw new Error("- found in output"); |
194 throw new Error("- found in output"); |
198 if (output.indexOf("FFFFFF") >= 0) |
195 if (output.indexOf("FFFFFF") >= 0) |
199 throw new Error("FFFFFF found in output"); |
196 throw new Error("FFFFFF found in output"); |
200 } |
197 } |