mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-02 20:20:14 +00:00
8076971: sun/management/jmxremote/startstop/JMXStatusTest.java failed with AssertionError
Reviewed-by: sla, dholmes
This commit is contained in:
parent
883ba19236
commit
a79d202015
@ -363,7 +363,8 @@ public class JMXStartStopTest {
|
||||
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);
|
||||
|
||||
@ -37,7 +37,7 @@ import jdk.testlibrary.ProcessTools;
|
||||
* 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 class JMXStatusTest {
|
||||
public static void setupClass() throws Exception {
|
||||
testAppPb = ProcessTools.createJavaProcessBuilder(
|
||||
"-cp", System.getProperty("test.class.path"),
|
||||
"-XX:+UsePerfData",
|
||||
TEST_APP_NAME
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user