< prev index next >
test/tools/launcher/TestHelper.java
Print this page
rev 12309 : 8027634: Support @argfiles for java command-line tool
Reviewed-by: ksrini, mchung
*** 620,629 ****
--- 620,639 ----
}
}
appendError("string <" + stringToMatch + "> found");
return false;
}
+
+ String findInOutput(String pattern) {
+ for (String x : testOutput) {
+ if (x.matches(pattern)) {
+ return x;
+ }
+ }
+ appendError("string <" + pattern + "> not found");
+ return null;
+ }
}
/**
* Indicates that the annotated method is a test method.
*/
@Retention(RetentionPolicy.RUNTIME)
< prev index next >