changeset 25165:b7751b856cae

8048005: Add test timing information to JMXStartStopTest Reviewed-by: egahlin, dfuchs
author jbachorik
date Tue, 24 Jun 2014 19:59:26 +0200
parents 06c6cc3a5930
children 7fb4fe5b60e2
files jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Tue Jun 24 19:58:03 2014 +0200
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Tue Jun 24 19:59:26 2014 +0200
@@ -290,11 +290,14 @@
     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");
                 }
             }
         }