< prev index next >

test/serviceability/jdwp/AllModulesCommandTest.java

Print this page
rev 12341 : 8078450: Implement consistent process for quarantine of tests


  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 import java.io.IOException;
  25 import java.util.Arrays;
  26 import java.util.concurrent.CountDownLatch;
  27 import java.util.Set;
  28 import java.util.HashSet;
  29 import static jdk.test.lib.Asserts.assertTrue;
  30 
  31 /**
  32  * @test
  33  * @summary Tests the modules-related JDWP commands
  34  * @library /test/lib
  35  * @ignore 8168478
  36  * @modules jdk.jdwp.agent
  37  * @modules java.base/jdk.internal.misc
  38  * @compile AllModulesCommandTestDebuggee.java
  39  * @run main/othervm AllModulesCommandTest
  40  */
  41 public class AllModulesCommandTest implements DebuggeeLauncher.Listener {
  42 
  43     private DebuggeeLauncher launcher;
  44     private JdwpChannel channel;
  45     private CountDownLatch jdwpLatch = new CountDownLatch(1);
  46     private Set<String> jdwpModuleNames = new HashSet<>();
  47     private Set<String> javaModuleNames = new HashSet<>();
  48 
  49     public static void main(String[] args) throws Throwable {
  50         new AllModulesCommandTest().doTest();
  51     }
  52 
  53     private void doTest() throws Throwable {
  54         launcher = new DebuggeeLauncher(this);
  55         launcher.launchDebuggee();




  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 import java.io.IOException;
  25 import java.util.Arrays;
  26 import java.util.concurrent.CountDownLatch;
  27 import java.util.Set;
  28 import java.util.HashSet;
  29 import static jdk.test.lib.Asserts.assertTrue;
  30 
  31 /**
  32  * @test
  33  * @summary Tests the modules-related JDWP commands
  34  * @library /test/lib

  35  * @modules jdk.jdwp.agent
  36  * @modules java.base/jdk.internal.misc
  37  * @compile AllModulesCommandTestDebuggee.java
  38  * @run main/othervm AllModulesCommandTest
  39  */
  40 public class AllModulesCommandTest implements DebuggeeLauncher.Listener {
  41 
  42     private DebuggeeLauncher launcher;
  43     private JdwpChannel channel;
  44     private CountDownLatch jdwpLatch = new CountDownLatch(1);
  45     private Set<String> jdwpModuleNames = new HashSet<>();
  46     private Set<String> javaModuleNames = new HashSet<>();
  47 
  48     public static void main(String[] args) throws Throwable {
  49         new AllModulesCommandTest().doTest();
  50     }
  51 
  52     private void doTest() throws Throwable {
  53         launcher = new DebuggeeLauncher(this);
  54         launcher.launchDebuggee();


< prev index next >