16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.io.File;
25 import jdk.test.lib.process.OutputAnalyzer;
26 import jdk.test.lib.process.ProcessTools;
27 import com.sun.tools.attach.VirtualMachine;
28 import com.sun.tools.attach.spi.AttachProvider;
29
30 /*
31 * @test
32 * @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757
33 * @summary Basic unit tests for the VM attach mechanism. The test will attach
34 * and detach to/from the running Application.
35 *
36 * @library /lib/testlibrary
37 * @library /test/lib
38 * @modules jdk.attach
39 * jdk.jartool/sun.tools.jar
40 *
41 * @run build jdk.testlibrary.* SimpleProvider
42 * @run main ProviderTest
43 */
44 public class ProviderTest {
45
46 /*
47 * The actual tests are in the nested class TestMain below.
48 * The responsibility of this class is to:
49 * 1. Build the needed jar.
50 * 2. Run tests in ProviderTest.TestMain.
51 */
52 public static void main(String args[]) throws Throwable {
53 try {
54 buildJar();
55 runTests();
56 } catch (Throwable t) {
57 System.out.println("TestProvider got unexpected exception: " + t);
58 t.printStackTrace();
59 throw t;
60 }
61 }
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.io.File;
25 import jdk.test.lib.process.OutputAnalyzer;
26 import jdk.test.lib.process.ProcessTools;
27 import com.sun.tools.attach.VirtualMachine;
28 import com.sun.tools.attach.spi.AttachProvider;
29
30 /*
31 * @test
32 * @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757
33 * @summary Basic unit tests for the VM attach mechanism. The test will attach
34 * and detach to/from the running Application.
35 *
36 * @library /test/lib
37 * @modules jdk.attach
38 * jdk.jartool/sun.tools.jar
39 *
40 * @run build SimpleProvider
41 * @run main ProviderTest
42 */
43 public class ProviderTest {
44
45 /*
46 * The actual tests are in the nested class TestMain below.
47 * The responsibility of this class is to:
48 * 1. Build the needed jar.
49 * 2. Run tests in ProviderTest.TestMain.
50 */
51 public static void main(String args[]) throws Throwable {
52 try {
53 buildJar();
54 runTests();
55 } catch (Throwable t) {
56 System.out.println("TestProvider got unexpected exception: " + t);
57 t.printStackTrace();
58 throw t;
59 }
60 }
|