changeset 11868:f57957a657e3

8076971: sun/management/jmxremote/startstop/JMXStatusTest.java failed with AssertionError Reviewed-by: sla, dholmes
author jbachorik
date Mon, 27 Apr 2015 10:13:21 +0200
parents 35eb8ba7f6d8
children 2ca2a6ae18f0
files test/sun/management/jmxremote/startstop/JMXStartStopTest.java test/sun/management/jmxremote/startstop/JMXStatusTest.java
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Mon Apr 27 10:12:56 2015 +0200
+++ b/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/test/sun/management/jmxremote/startstop/JMXStatusTest.java	Mon Apr 27 10:12:56 2015 +0200
+++ b/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
         );
     }