mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-18 01:17:57 +00:00
8048005: Add test timing information to JMXStartStopTest
Reviewed-by: egahlin, dfuchs
This commit is contained in:
parent
8bca223cbd
commit
cc7e85e940
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user