< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jdwp/StringReference/Value/value001/TestDescription.java

Print this page
rev 59900 : imported patch 8249035
   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  */


  34  *         command: Value
  35  *     Test checks that debugee accept command and replies
  36  *     with correct reply packet. Also test checks that
  37  *     returned value of the requested string is equal
  38  *     to the expected one.
  39  *     First, test launches debuggee VM using support classes
  40  *     and connects to it.
  41  *     Then test queries debugee VM to create string with given vaule
  42  *     and saves stringID of created string.
  43  *     Then test sends Value command with saved stringID
  44  *     as an command argument and waits for a reply packet.
  45  *     Then test checks if the received reply packet has proper
  46  *     structure and extracted string value is equal to
  47  *     the expected string.
  48  *     After JDWP command has been tested, test sends debugee VM
  49  *     signal to quit, waits for debugee exits and exits too
  50  *     with a proper exit code.
  51  *
  52  * @library /vmTestbase /test/hotspot/jtreg/vmTestbase
  53  *          /test/lib
  54  * @run driver jdk.test.lib.FileInstaller . .
  55  * @build nsk.jdwp.StringReference.Value.value001
  56  *        nsk.jdwp.StringReference.Value.value001a
  57  * @run main/othervm PropertyResolvingWrapper
  58  *      nsk.jdwp.StringReference.Value.value001
  59  *      -arch=${os.family}-${os.simpleArch}
  60  *      -verbose
  61  *      -waittime=5
  62  *      -debugee.vmkind=java
  63  *      -transport.address=dynamic
  64  *      -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
  65  */
  66 
   1 /*
   2  * Copyright (c) 2017, 2020, 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  */


  34  *         command: Value
  35  *     Test checks that debugee accept command and replies
  36  *     with correct reply packet. Also test checks that
  37  *     returned value of the requested string is equal
  38  *     to the expected one.
  39  *     First, test launches debuggee VM using support classes
  40  *     and connects to it.
  41  *     Then test queries debugee VM to create string with given vaule
  42  *     and saves stringID of created string.
  43  *     Then test sends Value command with saved stringID
  44  *     as an command argument and waits for a reply packet.
  45  *     Then test checks if the received reply packet has proper
  46  *     structure and extracted string value is equal to
  47  *     the expected string.
  48  *     After JDWP command has been tested, test sends debugee VM
  49  *     signal to quit, waits for debugee exits and exits too
  50  *     with a proper exit code.
  51  *
  52  * @library /vmTestbase /test/hotspot/jtreg/vmTestbase
  53  *          /test/lib

  54  * @build nsk.jdwp.StringReference.Value.value001
  55  *        nsk.jdwp.StringReference.Value.value001a
  56  * @run main/othervm PropertyResolvingWrapper
  57  *      nsk.jdwp.StringReference.Value.value001
  58  *      -arch=${os.family}-${os.simpleArch}
  59  *      -verbose
  60  *      -waittime=5
  61  *      -debugee.vmkind=java
  62  *      -transport.address=dynamic
  63  *      -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
  64  */
  65 
< prev index next >