From cc7e85e940804abf2706230710a6b9d3fe99fee4 Mon Sep 17 00:00:00 2001 From: Jaroslav Bachorik Date: Tue, 24 Jun 2014 19:59:26 +0200 Subject: [PATCH] 8048005: Add test timing information to JMXStartStopTest Reviewed-by: egahlin, dfuchs --- .../sun/management/jmxremote/startstop/JMXStartStopTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java index 09c1fa9d080..f485358eb33 100644 --- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java +++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java @@ -290,11 +290,14 @@ public class JMXStartStopTest { public static void main(String args[]) throws Exception { for (Method m : JMXStartStopTest.class.getDeclaredMethods()) { if (m.getName().startsWith("test_")) { + long t1 = System.currentTimeMillis(); try { m.invoke(null); - System.out.println("=== PASSED\n"); + System.out.println("=== PASSED"); } catch (Throwable e) { failures.add(new Failure(e, m.getName() + " failed")); + } finally { + System.out.println("(took " + (System.currentTimeMillis() - t1) + "ms)\n"); } } }