< prev index next >

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

Print this page




  21  * questions.
  22  */
  23 
  24 import java.io.IOException;
  25 import java.io.InputStream;
  26 import java.util.Map;
  27 
  28 import jdk.test.lib.process.ProcessTools;
  29 
  30 import com.sun.jdi.Bootstrap;
  31 import com.sun.jdi.VirtualMachine;
  32 import com.sun.jdi.connect.AttachingConnector;
  33 import com.sun.jdi.connect.Connector;
  34 import com.sun.jdi.connect.IllegalConnectorArgumentsException;
  35 
  36 /**
  37  * @test
  38  * @bug 4527279
  39  * @summary Unit test for ProcessAttachingConnector
  40  *
  41  * @library /lib/testlibrary
  42  * @library /test/lib
  43  * @modules java.management
  44  *          jdk.jdi
  45  * @build jdk.testlibrary.* ProcessAttachTest
  46  * @run driver ProcessAttachTest
  47  */
  48 
  49 class ProcessAttachTestTarg {
  50     public static void main(String args[]) throws Exception {
  51         // Write something that can be read by the driver
  52         System.out.println("Debuggee started");
  53         System.out.flush();
  54         for (;;) {
  55             Thread.sleep(100);
  56         }
  57     }
  58 }
  59 
  60 public class ProcessAttachTest {
  61 
  62     public static final String TESTCLASSES = System.getProperty("test.classes");
  63 
  64     public static void main(String[] args) throws Exception {
  65 




  21  * questions.
  22  */
  23 
  24 import java.io.IOException;
  25 import java.io.InputStream;
  26 import java.util.Map;
  27 
  28 import jdk.test.lib.process.ProcessTools;
  29 
  30 import com.sun.jdi.Bootstrap;
  31 import com.sun.jdi.VirtualMachine;
  32 import com.sun.jdi.connect.AttachingConnector;
  33 import com.sun.jdi.connect.Connector;
  34 import com.sun.jdi.connect.IllegalConnectorArgumentsException;
  35 
  36 /**
  37  * @test
  38  * @bug 4527279
  39  * @summary Unit test for ProcessAttachingConnector
  40  *

  41  * @library /test/lib
  42  * @modules java.management
  43  *          jdk.jdi
  44  * @build ProcessAttachTest
  45  * @run driver ProcessAttachTest
  46  */
  47 
  48 class ProcessAttachTestTarg {
  49     public static void main(String args[]) throws Exception {
  50         // Write something that can be read by the driver
  51         System.out.println("Debuggee started");
  52         System.out.flush();
  53         for (;;) {
  54             Thread.sleep(100);
  55         }
  56     }
  57 }
  58 
  59 public class ProcessAttachTest {
  60 
  61     public static final String TESTCLASSES = System.getProperty("test.classes");
  62 
  63     public static void main(String[] args) throws Exception {
  64 


< prev index next >