< prev index next >
test/tools/javap/T6868539.java
Print this page
rev 3478 : Other minor touchups
@@ -56,14 +56,16 @@
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 + " not found");
+ error(expect + notFound);
}
}
void error(String msg) {
System.err.println(msg);
< prev index next >