< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jdwp/Method/IsObsolete/isobsolete002/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  */


  50  *     Debugger creates command packet with Method.IsObsolete command for
  51  *     the tested method, writes this packet to the transport channel,
  52  *     and waits for a reply packet. When reply packet is received,
  53  *     debugger parses the packet structure and checks if expected
  54  *     isObsolete value returned in the packet.
  55  *     Finally, debugger disconnects debuggee, waits for it exits
  56  *     and exits too with the proper exit code.
  57  * COMMENTS
  58  *     First positional argument for the test should be path to the test
  59  *     work directory where loaded *.klass file should be located.
  60  *         Test was fixed due to test bug:
  61  *         4514956 Method.isObsolete() returns false for redefined method
  62  *     Test was updated according to rfe:
  63  *     4691123 TEST: some jdi tests contain precompiled .klass files undes SCCS.
  64  *     isobsolete002b.ja was moved into newclass directory and renamed
  65  *     to isobsolete002b.java.
  66  *     The precompiled class file is created during test base build process.
  67  *
  68  * @library /vmTestbase /test/hotspot/jtreg/vmTestbase
  69  *          /test/lib
  70  * @run driver jdk.test.lib.FileInstaller . .
  71  * @build ExecDriver
  72  * @build nsk.jdwp.Method.IsObsolete.isobsolete002
  73  *        nsk.jdwp.Method.IsObsolete.isobsolete002a
  74  *        nsk.jdwp.Method.IsObsolete.isobsolete002b
  75  * @run driver PropertyResolvingWrapper ExecDriver --cmd
  76  *      ${compile.jdk}/bin/javac
  77  *      -cp ${test.class.path}
  78  *      -d newclass
  79  *      newclass/isobsolete002b.java
  80  * @run main/othervm PropertyResolvingWrapper
  81  *      nsk.jdwp.Method.IsObsolete.isobsolete002
  82  *      .
  83  *      -arch=${os.family}-${os.simpleArch}
  84  *      -verbose
  85  *      -waittime=5
  86  *      -debugee.vmkind=java
  87  *      -transport.address=dynamic
  88  *      -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
  89  */
  90 
   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  */


  50  *     Debugger creates command packet with Method.IsObsolete command for
  51  *     the tested method, writes this packet to the transport channel,
  52  *     and waits for a reply packet. When reply packet is received,
  53  *     debugger parses the packet structure and checks if expected
  54  *     isObsolete value returned in the packet.
  55  *     Finally, debugger disconnects debuggee, waits for it exits
  56  *     and exits too with the proper exit code.
  57  * COMMENTS
  58  *     First positional argument for the test should be path to the test
  59  *     work directory where loaded *.klass file should be located.
  60  *         Test was fixed due to test bug:
  61  *         4514956 Method.isObsolete() returns false for redefined method
  62  *     Test was updated according to rfe:
  63  *     4691123 TEST: some jdi tests contain precompiled .klass files undes SCCS.
  64  *     isobsolete002b.ja was moved into newclass directory and renamed
  65  *     to isobsolete002b.java.
  66  *     The precompiled class file is created during test base build process.
  67  *
  68  * @library /vmTestbase /test/hotspot/jtreg/vmTestbase
  69  *          /test/lib

  70  * @build ExecDriver
  71  * @build nsk.jdwp.Method.IsObsolete.isobsolete002
  72  *        nsk.jdwp.Method.IsObsolete.isobsolete002a
  73  *        nsk.jdwp.Method.IsObsolete.isobsolete002b
  74  * @run driver nsk.share.ExtraClassesBuilder
  75  *      newclass



  76  * @run main/othervm PropertyResolvingWrapper
  77  *      nsk.jdwp.Method.IsObsolete.isobsolete002
  78  *      .
  79  *      -arch=${os.family}-${os.simpleArch}
  80  *      -verbose
  81  *      -waittime=5
  82  *      -debugee.vmkind=java
  83  *      -transport.address=dynamic
  84  *      -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
  85  */
  86 
< prev index next >