--- a/test/jdk/jdk/jfr/api/consumer/recordingstream/TestOnFlush.java Sun Sep 22 17:31:57 2019 +0200
+++ b/test/jdk/jdk/jfr/api/consumer/recordingstream/TestOnFlush.java Mon Sep 23 09:16:05 2019 -0700
@@ -50,6 +50,7 @@
}
private static void testOnFlushNull() {
+ log("Entering testOnFlushNull()");
try (RecordingStream rs = new RecordingStream()) {
try {
rs.onFlush(null);
@@ -58,9 +59,11 @@
// OK; as expected
}
}
+ log("Leaving testOnFlushNull()");
}
private static void testNoEvent() throws Exception {
+ log("Entering testNoEvent()");
CountDownLatch flush = new CountDownLatch(1);
try (RecordingStream r = new RecordingStream()) {
r.onFlush(() -> {
@@ -69,9 +72,11 @@
r.startAsync();
flush.await();
}
+ log("Leaving testNoEvent()");
}
private static void testOneEvent() throws InterruptedException {
+ log("Entering testOneEvent()");
CountDownLatch flush = new CountDownLatch(1);
try (RecordingStream r = new RecordingStream()) {
r.onEvent(e -> {
@@ -85,5 +90,10 @@
e.commit();
flush.await();
}
+ log("Leaving testOneEvent()");
+ }
+
+ private static void log(String msg) {
+ System.out.println(msg);
}
}