langtools/test/jdk/javadoc/tool/modules/ModuleTestBase.java
changeset 41161 c73ab5e71cc2
parent 40508 74ef30d16fb9
child 42277 2668b0bc7ad7
--- 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);
         }
     }