< prev index next >

test/jdk/com/sun/jdi/DoubleAgentTest.java

Print this page

        

*** 39,52 **** private static final String TEST_CLASSES = System.getProperty( "test.classes", "."); public static void main(String[] args) throws Throwable { - int port = Utils.getFreePort(); - String jdwpOption = "-agentlib:jdwp=transport=dt_socket" ! + ",server=y" + ",suspend=n" + ",address=*:" + String.valueOf(port); OutputAnalyzer output = ProcessTools.executeTestJvm("-classpath", TEST_CLASSES, jdwpOption, // Notice jdwpOption specified twice jdwpOption, --- 39,50 ---- private static final String TEST_CLASSES = System.getProperty( "test.classes", "."); public static void main(String[] args) throws Throwable { String jdwpOption = "-agentlib:jdwp=transport=dt_socket" ! + ",server=y" + ",suspend=n" + ",address=*:0"; OutputAnalyzer output = ProcessTools.executeTestJvm("-classpath", TEST_CLASSES, jdwpOption, // Notice jdwpOption specified twice jdwpOption,
< prev index next >