test/hotspot/jtreg/vmTestbase/nsk/jdwp/VirtualMachine/HoldEvents/holdevents002/TestDescription.java
changeset 50317 cf71bff5f533
equal deleted inserted replaced
50316:60ebcc705421 50317:cf71bff5f533
       
     1 /*
       
     2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
       
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4  *
       
     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
       
     7  * published by the Free Software Foundation.
       
     8  *
       
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    12  * version 2 for more details (a copy is included in the LICENSE file that
       
    13  * accompanied this code).
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License version
       
    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 
       
    25 /*
       
    26  * @test
       
    27  *
       
    28  * @summary converted from VM Testbase nsk/jdwp/VirtualMachine/HoldEvents/holdevents002.
       
    29  * VM Testbase keywords: [jpda, jdwp]
       
    30  * VM Testbase readme:
       
    31  * DESCRIPTION
       
    32  *     This test performs checking for
       
    33  *         command set: VirtualMachine
       
    34  *         command: HoldEvents
       
    35  *         event kind: BREAKPOINT
       
    36  *     Test checks that no requested BREAKPOINT events received from
       
    37  *     debuggee after holding events.
       
    38  *     Test consists of two compoments:
       
    39  *         debugger: holdevents002
       
    40  *         debuggee: holdevents002a
       
    41  *     First, debugger uses nsk.share support classes to launch debuggee
       
    42  *     and obtain Transport object, that represents JDWP transport channel.
       
    43  *     Next, debugger waits for tested class loaded and requests an
       
    44  *     BREAKPOINT event for some location into tested class.
       
    45  *     Then, debugger uses tesed command VirtualMachine.HoldEvents to
       
    46  *     hold events into debuggee and resumes debuggee to allow it to
       
    47  *     reach the breakpoint. Debugger waits for WAITTIME timeout for
       
    48  *     an event packet. If no event packet received, tests passes.
       
    49  *     If requested BREAKPOINT or any other event received? test failed.
       
    50  *     Finally, debugger disconnectes debuggee, waits for it exit
       
    51  *     and exits too with proper exit code.
       
    52  *
       
    53  * @library /vmTestbase /test/hotspot/jtreg/vmTestbase
       
    54  *          /test/lib
       
    55  * @run driver jdk.test.lib.FileInstaller . .
       
    56  * @build nsk.jdwp.VirtualMachine.HoldEvents.holdevents002
       
    57  *        nsk.jdwp.VirtualMachine.HoldEvents.holdevents002a
       
    58  * @run main/othervm/timeout=420 PropertyResolvingWrapper
       
    59  *      nsk.jdwp.VirtualMachine.HoldEvents.holdevents002
       
    60  *      -arch=${os.family}-${os.simpleArch}
       
    61  *      -verbose
       
    62  *      -waittime=5
       
    63  *      -debugee.vmkind=java
       
    64  *      -transport.address=dynamic
       
    65  *      -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
       
    66  */
       
    67