/*
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * @test
 * @bug 8054386
 * @summary java debugging test for AppCDS
 * AppCDS does not support uncompressed oops
 * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
 * @library /testlibrary
 * @modules jdk.jdi
 *          java.base/sun.misc
 *          java.management
 *          jdk.jartool/sun.tools.jar
 * @library ../../../../../jdk/test/com/sun/jdi
 * @run compile -g  ../../../../../jdk/test/com/sun/jdi/DeleteAllBkptsTest.java
 * @build TestCommon JarBuilder
 * @run main JDIDeleteAllBkptsTest
 */

/*
 * Launch the JDI DeleteAllBkptsTest, which will set a debugger breakpoint in
 * DeleteAllBkptsTarg and then clear them. DeleteAllBkptsTarg is first dumped
 * into the AppCDS archive, so this will test debugging a class in the archive.
 */

public class JDIDeleteAllBkptsTest extends JDITest {
    static String jarClasses[] = {
        // DeleteAllBkptsTarg is the only class we need in the archive. It will
        // be launched by DeleteAllBkptsTest as the debuggee application. Note,
        // compiling DeleteAllBkptsTest.java above will cause DeleteAllBkptsTarg to
        // be compiled since it is also in DeleteAllBkptsTest.java.
        "DeleteAllBkptsTarg", 
    };
    static String testname = "DeleteAllBkptsTest";

    public static void main(String[] args) throws Exception {
        runTest(testname, jarClasses);
    }
}
