test/jdk/com/sun/tools/attach/BasicTests.java
changeset 51541 69ee8894f5fa
parent 47216 71c04702a3d5
child 51675 b487c1e914d0
equal deleted inserted replaced
51540:3d3e8a33701e 51541:69ee8894f5fa
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    26 import java.net.ServerSocket;
    26 import java.net.ServerSocket;
    27 import java.net.Socket;
    27 import java.net.Socket;
    28 import java.util.List;
    28 import java.util.List;
    29 import java.util.Properties;
    29 import java.util.Properties;
    30 
    30 
       
    31 import jdk.test.lib.thread.ProcessThread;
    31 import jdk.testlibrary.OutputAnalyzer;
    32 import jdk.testlibrary.OutputAnalyzer;
    32 import jdk.testlibrary.ProcessThread;
       
    33 import jdk.testlibrary.ProcessTools;
    33 import jdk.testlibrary.ProcessTools;
    34 
    34 
    35 import com.sun.tools.attach.AgentInitializationException;
    35 import com.sun.tools.attach.AgentInitializationException;
    36 import com.sun.tools.attach.AgentLoadException;
    36 import com.sun.tools.attach.AgentLoadException;
    37 import com.sun.tools.attach.VirtualMachine;
    37 import com.sun.tools.attach.VirtualMachine;
    43  * @key intermittent
    43  * @key intermittent
    44  * @summary Basic unit tests for the VM attach mechanism. This test will perform
    44  * @summary Basic unit tests for the VM attach mechanism. This test will perform
    45  * a number of basic attach tests.
    45  * a number of basic attach tests.
    46  *
    46  *
    47  * @library /lib/testlibrary
    47  * @library /lib/testlibrary
       
    48  * @library /test/lib
    48  * @modules java.instrument
    49  * @modules java.instrument
    49  *          jdk.attach
    50  *          jdk.attach
    50  *          jdk.jartool/sun.tools.jar
    51  *          jdk.jartool/sun.tools.jar
    51  *
    52  *
    52  * @run build jdk.testlibrary.* Agent BadAgent RedefineAgent Application RedefineDummy RunnerUtil
    53  * @run build jdk.testlibrary.* Agent BadAgent RedefineAgent Application RedefineDummy RunnerUtil