8268539: several serviceability/sa tests should be run in driver mode
Reviewed-by: sspitsyn
This commit is contained in:
parent
72672277e4
commit
78cb6776b6
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Test the jhsdb jmap -clstats command with CDS enabled
|
||||
* @requires vm.hasSA & vm.cds
|
||||
* @library /test/lib
|
||||
* @run main/othervm/timeout=2400 CDSJMapClstats
|
||||
* @run driver/timeout=2400 CDSJMapClstats
|
||||
*/
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -39,7 +39,7 @@ import jtreg.SkippedException;
|
||||
* @summary Test clhsdb dumpclass command
|
||||
* @requires vm.hasSA
|
||||
* @library /test/lib
|
||||
* @run main/othervm ClhsdbDumpclass
|
||||
* @run driver ClhsdbDumpclass
|
||||
*/
|
||||
|
||||
public class ClhsdbDumpclass {
|
||||
@ -70,8 +70,8 @@ public class ClhsdbDumpclass {
|
||||
// Run javap on the generated class file to make sure it's valid.
|
||||
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("javap");
|
||||
launcher.addVMArgs(Utils.getTestJavaOpts());
|
||||
launcher.addToolArg(APP_DOT_CLASSNAME);
|
||||
System.out.println("> javap " + APP_DOT_CLASSNAME);
|
||||
launcher.addToolArg(classFile.toString());
|
||||
System.out.println("> javap " + classFile.toString());
|
||||
List<String> cmdStringList = Arrays.asList(launcher.getCommand());
|
||||
ProcessBuilder pb = new ProcessBuilder(cmdStringList);
|
||||
Process javap = pb.start();
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,7 +37,7 @@ import jtreg.SkippedException;
|
||||
* @summary Test clhsdb flags command
|
||||
* @requires vm.hasSA
|
||||
* @library /test/lib
|
||||
* @run main/othervm ClhsdbFlags
|
||||
* @run driver ClhsdbFlags
|
||||
*/
|
||||
|
||||
public class ClhsdbFlags {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, Red Hat Inc. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -38,7 +38,7 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
* @requires vm.hasSA
|
||||
* @requires vm.opt.DeoptimizeALot != true
|
||||
* @library /test/lib
|
||||
* @run main/othervm ClhsdbJstackXcompStress
|
||||
* @run driver ClhsdbJstackXcompStress
|
||||
*/
|
||||
public class ClhsdbJstackXcompStress {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @run main DeadlockDetectionTest
|
||||
* @run driver DeadlockDetectionTest
|
||||
*/
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,7 +31,7 @@ import jdk.test.lib.Utils;
|
||||
* @test
|
||||
* @requires vm.hasSA
|
||||
* @library /test/lib
|
||||
* @run main JhsdbThreadInfoTest
|
||||
* @run driver JhsdbThreadInfoTest
|
||||
*/
|
||||
public class JhsdbThreadInfoTest {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -52,7 +52,7 @@ import jdk.test.lib.Utils;
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.oops
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.ui.classbrowser
|
||||
* @run main TestCpoolForInvokeDynamic
|
||||
* @run driver TestCpoolForInvokeDynamic
|
||||
*/
|
||||
|
||||
public class TestCpoolForInvokeDynamic {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -50,7 +50,7 @@ import jdk.test.lib.Utils;
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.oops
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
|
||||
* @run main TestDefaultMethods
|
||||
* @run driver TestDefaultMethods
|
||||
*/
|
||||
|
||||
public class TestDefaultMethods {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -48,7 +48,7 @@ import jdk.test.lib.hprof.model.Snapshot;
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.oops
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
|
||||
* @run main/othervm TestHeapDumpForInvokeDynamic
|
||||
* @run driver TestHeapDumpForInvokeDynamic
|
||||
*/
|
||||
|
||||
public class TestHeapDumpForInvokeDynamic {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -39,7 +39,7 @@ import jdk.test.lib.SA.SATestUtils;
|
||||
* @requires os.arch=="amd64" | os.arch=="x86_64"
|
||||
* @requires os.family=="windows" | os.family == "linux" | os.family == "mac"
|
||||
* @library /test/lib
|
||||
* @run main/othervm TestJhsdbJstackLineNumbers
|
||||
* @run driver TestJhsdbJstackLineNumbers
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,7 +31,7 @@ import jdk.test.lib.Utils;
|
||||
* @test
|
||||
* @requires vm.hasSA
|
||||
* @library /test/lib
|
||||
* @run main/othervm TestJhsdbJstackLock
|
||||
* @run driver TestJhsdbJstackLock
|
||||
*/
|
||||
|
||||
public class TestJhsdbJstackLock {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,7 +38,7 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
* @bug 8208091
|
||||
* @requires (os.family == "linux") & (vm.hasSA)
|
||||
* @library /test/lib
|
||||
* @run main/othervm TestJhsdbJstackMixed
|
||||
* @run driver TestJhsdbJstackMixed
|
||||
*/
|
||||
public class TestJhsdbJstackMixed {
|
||||
|
||||
|
@ -41,7 +41,7 @@ import jdk.test.lib.SA.SATestUtils;
|
||||
* @modules jdk.hotspot.agent/sun.jvm.hotspot
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.oops
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.runtime
|
||||
* @run main TestObjectMonitorIterate
|
||||
* @run driver TestObjectMonitorIterate
|
||||
*/
|
||||
|
||||
public class TestObjectMonitorIterate {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -44,7 +44,7 @@ import jdk.test.lib.Utils;
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot
|
||||
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
|
||||
* @run main/othervm TestRevPtrsForInvokeDynamic
|
||||
* @run driver TestRevPtrsForInvokeDynamic
|
||||
*/
|
||||
|
||||
public class TestRevPtrsForInvokeDynamic {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,7 +38,7 @@ import jdk.test.lib.SA.SATestUtils;
|
||||
* @summary Test "jhsdb jinfo --sysprops", "jinfo -sysprops", and clhsdb "sysprops" commands
|
||||
* @requires vm.hasSA
|
||||
* @library /test/lib
|
||||
* @run main/othervm TestSysProps
|
||||
* @run driver TestSysProps
|
||||
*/
|
||||
|
||||
public class TestSysProps {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -49,7 +49,7 @@ import jdk.test.lib.SA.SATestUtils;
|
||||
* java.management/sun.management
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @build JMapHProfLargeHeapProc
|
||||
* @run main JMapHProfLargeHeapTest
|
||||
* @run driver JMapHProfLargeHeapTest
|
||||
*/
|
||||
|
||||
public class JMapHProfLargeHeapTest {
|
||||
|
@ -38,7 +38,7 @@ import jtreg.SkippedException;
|
||||
* @requires vm.hasSA
|
||||
* @requires os.family != "windows"
|
||||
* @library /test/lib
|
||||
* @run main/othervm ClhsdbAttachToDebugServer
|
||||
* @run driver ClhsdbAttachToDebugServer
|
||||
*/
|
||||
|
||||
public class ClhsdbAttachToDebugServer {
|
||||
|
@ -37,7 +37,7 @@ import jtreg.SkippedException;
|
||||
* @requires vm.hasSA
|
||||
* @requires os.family != "windows"
|
||||
* @library /test/lib
|
||||
* @run main/othervm ClhsdbTestConnectArgument
|
||||
* @run driver ClhsdbTestConnectArgument
|
||||
*/
|
||||
|
||||
public class ClhsdbTestConnectArgument {
|
||||
|
@ -30,7 +30,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
*
|
||||
* @run main/othervm DebugdConnectTest
|
||||
* @run driver DebugdConnectTest
|
||||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -38,7 +38,7 @@ import jtreg.SkippedException;
|
||||
* @requires vm.hasSA
|
||||
* @requires os.family != "windows"
|
||||
* @library /test/lib
|
||||
* @run main/othervm DisableRegistryTest
|
||||
* @run driver DisableRegistryTest
|
||||
*/
|
||||
|
||||
public class DisableRegistryTest {
|
||||
|
@ -35,7 +35,7 @@ import jtreg.SkippedException;
|
||||
* @requires vm.hasSA
|
||||
* @requires (os.family != "windows") & (os.family != "mac")
|
||||
* @library /test/lib
|
||||
* @run main/othervm PmapOnDebugdTest
|
||||
* @run driver PmapOnDebugdTest
|
||||
*/
|
||||
|
||||
public class PmapOnDebugdTest {
|
||||
|
@ -38,7 +38,7 @@ import jtreg.SkippedException;
|
||||
* @requires vm.hasSA
|
||||
* @requires os.family != "windows"
|
||||
* @library /test/lib
|
||||
* @run main/othervm RunCommandOnServerTest
|
||||
* @run driver RunCommandOnServerTest
|
||||
*/
|
||||
|
||||
public class RunCommandOnServerTest {
|
||||
|
@ -31,7 +31,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
*
|
||||
* @run main/othervm SADebugDTest
|
||||
* @run driver SADebugDTest
|
||||
*/
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
Loading…
Reference in New Issue
Block a user