< prev index next >

test/tools/javap/T6868539.java

Print this page
rev 3478 : Other minor touchups

*** 56,69 **** verify(output, "NameAndType +#[0-9]+:#[0-9]+ +// +run:\\(\\)V"); // 12: NameAndType if (errors > 0) throw new Error(errors + " found."); } void verify(String output, String... expects) { for (String expect: expects) { if (!output.matches("(?s).*" + expect + ".*")) ! error(expect + " not found"); } } void error(String msg) { System.err.println(msg); --- 56,71 ---- verify(output, "NameAndType +#[0-9]+:#[0-9]+ +// +run:\\(\\)V"); // 12: NameAndType if (errors > 0) throw new Error(errors + " found."); } + String notFound = " not found"; + void verify(String output, String... expects) { for (String expect: expects) { if (!output.matches("(?s).*" + expect + ".*")) ! error(expect + notFound); } } void error(String msg) { System.err.println(msg);
< prev index next >