--- a/test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java Thu Aug 29 19:38:54 2019 +0200
+++ b/test/jdk/jdk/jfr/api/consumer/recordingstream/TestSetEndTime.java Thu Aug 29 19:40:37 2019 +0200
@@ -59,14 +59,14 @@
r.setFlushInterval(Duration.ofSeconds(1));
r.start();
Mark event1 = new Mark();
+ event1.begin(); // start time
event1.before = true;
advanceClock();
- event1.commit(); // start time
+ event1.commit();
Mark event2 = new Mark();
event2.begin(); // end time
advanceClock();
- // event2.end();
Thread.sleep(100);
event2.before = false;
event2.commit();
@@ -85,7 +85,7 @@
System.out.println("End : " + end);
}
}
-
+ System.out.println("===================");
AtomicBoolean error = new AtomicBoolean(true);
try (EventStream d = EventStream.openRepository()) {
d.setStartTime(start);