--- a/langtools/test/jdk/javadoc/tool/modules/ModuleTestBase.java Fri Sep 23 15:35:32 2016 +0200
+++ b/langtools/test/jdk/javadoc/tool/modules/ModuleTestBase.java Fri Sep 23 09:57:24 2016 -0700
@@ -252,10 +252,14 @@
}
void assertAbsent(String regex) throws Exception {
- List<String> foundList = tb.grep(regex, currentTask.getOutputLines(STDOUT));
+ assertAbsent(regex, STDOUT);
+ }
+
+ void assertAbsent(String regex, Task.OutputKind kind) throws Exception {
+ List<String> foundList = tb.grep(regex, currentTask.getOutputLines(kind));
if (!foundList.isEmpty()) {
dumpDocletDiagnostics();
- throw new Exception(regex + " found in: " + STDOUT);
+ throw new Exception(regex + " found in: " + kind);
}
}