< prev index next >
test/jdk/sun/management/jmxremote/bootstrap/AbstractFilePermissionTest.java
Print this page
rev 51731 : imported patch 8210732
*** 159,172 ****
}
private int doTest() throws Exception {
for (int i = 0; i < MAX_GET_FREE_PORT_TRIES; ++i) {
! final String pp = "-Dcom.sun.management.jmxremote.port=" + jdk.testlibrary.Utils.getFreePort();
List<String> command = new ArrayList<>();
! command.addAll(jdk.testlibrary.Utils.getVmOptions());
command.add(mp);
command.add(pp);
command.add("-cp");
command.add(TEST_CLASSES);
command.add(className);
--- 159,172 ----
}
private int doTest() throws Exception {
for (int i = 0; i < MAX_GET_FREE_PORT_TRIES; ++i) {
! final String pp = "-Dcom.sun.management.jmxremote.port=" + jdk.test.lib.Utils.getFreePort();
List<String> command = new ArrayList<>();
! command.addAll(jdk.test.lib.Utils.getVmOptions());
command.add(mp);
command.add(pp);
command.add("-cp");
command.add(TEST_CLASSES);
command.add(className);
< prev index next >