From 9e80cb2a4af49ba33f51fe926e3152d7bcea5299 Mon Sep 17 00:00:00 2001 From: jbachorik Date: Sun, 24 Jan 2021 19:29:46 +0100 Subject: [PATCH] Skip BTrace warnings in stderr --- .../src/test/java/org/openjdk/btrace/RuntimeTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/btrace-instr/src/test/java/org/openjdk/btrace/RuntimeTest.java b/btrace-instr/src/test/java/org/openjdk/btrace/RuntimeTest.java index e2ff99bbc..66ad21961 100644 --- a/btrace-instr/src/test/java/org/openjdk/btrace/RuntimeTest.java +++ b/btrace-instr/src/test/java/org/openjdk/btrace/RuntimeTest.java @@ -243,9 +243,11 @@ public void run() { try { String l = null; while ((l = stderrReader.readLine()) != null) { - if (!l.contains("Server VM warning")) { - testAppLatch.countDown(); + if (l.contains("Server VM warning") || + l.contains("XML libraries not available")) { + continue; } + testAppLatch.countDown(); if (debugTestApp) { System.err.println("[traced app] " + l); }