test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach024/TestDescription.java
changeset 50910 3506855c6b86
parent 50260 46c67f5e27c2
equal deleted inserted replaced
50909:23806873a5ba 50910:3506855c6b86
    33  *     Attach API (com.sun.tools.attach).
    33  *     Attach API (com.sun.tools.attach).
    34  *     Test is based on the nsk.share.aod framework. In this framework each java
    34  *     Test is based on the nsk.share.aod framework. In this framework each java
    35  *     agent starts new thread from the 'agentmain' method, and all test checks are executed
    35  *     agent starts new thread from the 'agentmain' method, and all test checks are executed
    36  *     in this thread.
    36  *     in this thread.
    37  *     Test checks that agent's JAR file is appended at the end of the system class path.
    37  *     Test checks that agent's JAR file is appended at the end of the system class path.
    38  *     Agent's JAR file contains modified class java.util.ServiceConfigurationError (it is assumed
    38  *     Agent's JAR file contains modified class java.util.TooManyListenersException (it is assumed
    39  *     that this class isn't loaded before agent is loaded), agent instantiates ServiceConfigurationError
    39  *     that this class isn't loaded before agent is loaded), agent instantiates TooManyListenersException
    40  *     and checks that non-modified version of this class was loaded from rt.jar (not from agent's JAR).
    40  *     and checks that non-modified version of this class was loaded from rt.jar (not from agent's JAR).
    41  *
    41  *
    42  * @library /vmTestbase
    42  * @library /vmTestbase
    43  *          /test/lib
    43  *          /test/lib
    44  * @run driver jdk.test.lib.FileInstaller . .
    44  * @run driver jdk.test.lib.FileInstaller . .
    45  * @build nsk.share.aod.AODTestRunner
    45  * @build nsk.share.aod.AODTestRunner
    46  *        nsk.share.aod.TargetApplicationWaitingAgents
    46  *        nsk.share.aod.TargetApplicationWaitingAgents
    47  *        nsk.jvmti.AttachOnDemand.attach024.attach024Agent00
    47  *        nsk.jvmti.AttachOnDemand.attach024.attach024Agent00
    48  *
    48  *
    49  * @comment compile modified java.util.ServiceConfigurationError
    49  * @comment compile modified java.util.TooManyListenersException
    50  * @build ExecDriver
    50  * @build ExecDriver
    51  * @run driver PropertyResolvingWrapper ExecDriver --cmd
    51  * @run driver PropertyResolvingWrapper ExecDriver --cmd
    52  *      ${compile.jdk}/bin/javac
    52  *      ${compile.jdk}/bin/javac
    53  *      -cp ${test.class.path}
    53  *      -cp ${test.class.path}
    54  *      -d ./bin/classes
    54  *      -d ./bin/classes
    55  *      --patch-module java.base=${test.src}/java.base
    55  *      --patch-module java.base=${test.src}/java.base
    56  *      --add-reads java.base=ALL-UNNAMED
    56  *      --add-reads java.base=ALL-UNNAMED
    57  *      ${test.src}/java.base/java/util/ServiceConfigurationError.java
    57  *      ${test.src}/java.base/java/util/TooManyListenersException.java
    58  *
    58  *
    59  * @comment create attach024Agent00.jar in current directory
    59  * @comment create attach024Agent00.jar in current directory
    60  * @run driver PropertyResolvingWrapper ExecDriver --cmd
    60  * @run driver PropertyResolvingWrapper ExecDriver --cmd
    61  *      ${compile.jdk}/bin/jar
    61  *      ${compile.jdk}/bin/jar
    62  *      -cfm attach024Agent00.jar ${test.src}/attach024Agent00.mf
    62  *      -cfm attach024Agent00.jar ${test.src}/attach024Agent00.mf
    63  *      -C ./bin/classes
    63  *      -C ./bin/classes
    64  *      java/util/ServiceConfigurationError.class
    64  *      java/util/TooManyListenersException.class
    65  * @run driver ClassFileInstaller
    65  * @run driver ClassFileInstaller
    66  *      nsk.jvmti.AttachOnDemand.attach024.attach024Agent00
    66  *      nsk.jvmti.AttachOnDemand.attach024.attach024Agent00
    67  * @run driver PropertyResolvingWrapper ExecDriver --cmd
    67  * @run driver PropertyResolvingWrapper ExecDriver --cmd
    68  *      ${compile.jdk}/bin/jar
    68  *      ${compile.jdk}/bin/jar
    69  *      -uf attach024Agent00.jar
    69  *      -uf attach024Agent00.jar