test/hotspot/jtreg/vmTestbase/nsk/jdwp/EventRequest/Clear/clear001/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/EventRequest/Clear/clear001.
       
    29  * VM Testbase keywords: [quick, jpda, jdwp]
       
    30  * VM Testbase readme:
       
    31  * DESCRIPTION
       
    32  *     This test performs checking for
       
    33  *         command set: EventRequest
       
    34  *         command: Clear
       
    35  *         event kind: BREAKPOINT
       
    36  *     Test checks that debuggee accept tested command and replies
       
    37  *     with correct reply packet. Also test checks that no breakpoint
       
    38  *     events occurs for cleared BREAKPOINT request.
       
    39  *     Test consists of two compoments:
       
    40  *         debugger: clear001
       
    41  *         debuggee: clear001a
       
    42  *     First, debugger uses nsk.share support classes to launch debuggee
       
    43  *     and obtain Transport object, that represents JDWP transport channel.
       
    44  *     Next, debugger waits for tested class loaded into debuggee and
       
    45  *     makes request for BREAKPOINT at method run().
       
    46  *     Then, debugger creates creates command packet for command
       
    47  *     EventRequest.Clear with created requestID, sends it to debuggee,
       
    48  *     waits for reply packet and check that reply is correct and has
       
    49  *     no reply data.
       
    50  *     Then, debugger resumes debuggee and waits for an VM_DEATH event.
       
    51  *     If received event is BREAKPOINT event, debugger complains an error.
       
    52  *     Finally, debugger disconnects debuggee, waits for it exits
       
    53  *     and exits too with proper exit code.
       
    54  * COMMENTS
       
    55  *     Test was fixed due to test bug:
       
    56  *     4797978 TEST_BUG: potential race condition in a number of JDWP tests
       
    57  *
       
    58  * @library /vmTestbase /test/hotspot/jtreg/vmTestbase
       
    59  *          /test/lib
       
    60  * @run driver jdk.test.lib.FileInstaller . .
       
    61  * @build nsk.jdwp.EventRequest.Clear.clear001
       
    62  *        nsk.jdwp.EventRequest.Clear.clear001a
       
    63  * @run main/othervm PropertyResolvingWrapper
       
    64  *      nsk.jdwp.EventRequest.Clear.clear001
       
    65  *      -arch=${os.family}-${os.simpleArch}
       
    66  *      -verbose
       
    67  *      -waittime=5
       
    68  *      -debugee.vmkind=java
       
    69  *      -transport.address=dynamic
       
    70  *      -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
       
    71  */
       
    72