changeset 337:474614a894d4

Runners: filter out WhiteBox warning messages from VM messages.
author shade
date Mon, 31 Oct 2016 17:52:26 +0100
parents 819b9ca864a2
children 3159862dbcdb
files jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ReportUtils.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ReportUtils.java	Fri Oct 21 21:41:32 2016 +0200
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ReportUtils.java	Mon Oct 31 17:52:26 2016 +0100
@@ -160,12 +160,20 @@
         if (!r.getAuxData().isEmpty()) {
             pw.println("    Messages: ");
             for (String data : r.getAuxData()) {
+                if (skipMessage(data)) continue;
                 pw.println("        " + data);
             }
             pw.println();
         }
     }
 
+    private static boolean skipMessage(String data) {
+        if (data.startsWith("Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox"))
+            return true;
+
+        return false;
+    }
+
     public static String statusToLabel(TestResult result) {
         switch (result.status()) {
             case TIMEOUT_ERROR: