8076971: sun/management/jmxremote/startstop/JMXStatusTest.java failed with AssertionError
authorjbachorik
Mon, 27 Apr 2015 10:13:21 +0200
changeset 30360 c34ae192d75f
parent 30359 b2b7b66cd9eb
child 30361 76bb3472a9dd
8076971: sun/management/jmxremote/startstop/JMXStatusTest.java failed with AssertionError Reviewed-by: sla, dholmes
jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java
jdk/test/sun/management/jmxremote/startstop/JMXStatusTest.java
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Mon Apr 27 10:12:56 2015 +0200
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Mon Apr 27 10:13:21 2015 +0200
@@ -363,7 +363,8 @@
             throws Exception {
         List<String> pbArgs = new ArrayList<>(Arrays.asList(
                 "-cp",
-                System.getProperty("test.class.path")
+                System.getProperty("test.class.path"),
+                "-XX:+UsePerfData"
         ));
         pbArgs.addAll(Arrays.asList(args));
         pbArgs.add(TEST_APP_NAME);
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStatusTest.java	Mon Apr 27 10:12:56 2015 +0200
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStatusTest.java	Mon Apr 27 10:13:21 2015 +0200
@@ -37,7 +37,7 @@
  *          The test asserts that the expected text is being printed.
  * @library /lib/testlibrary
  * @build jdk.testlibrary.* PortAllocator TestApp ManagementAgentJcmd
- * @run testng JMXStatusTest
+ * @run testng/othervm -XX:+UsePerfData JMXStatusTest
  */
 public class JMXStatusTest {
     private final static String TEST_APP_NAME = "TestApp";
@@ -74,6 +74,7 @@
     public static void setupClass() throws Exception {
         testAppPb = ProcessTools.createJavaProcessBuilder(
             "-cp", System.getProperty("test.class.path"),
+            "-XX:+UsePerfData",
             TEST_APP_NAME
         );
     }