8243928: several svc tests can be run in driver mode

Reviewed-by: amenkov
This commit is contained in:
Igor Ignatyev 2020-04-27 20:06:22 -07:00
parent 223ca800cc
commit 3a9f7648d2
15 changed files with 26 additions and 22 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -36,7 +36,7 @@ import jdk.test.lib.process.ProcessTools;
* java.management
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @build FinalizationRunner
* @run main RunFinalizationTest
* @run driver RunFinalizationTest
*/
public class RunFinalizationTest {
private final static String TEST_APP_NAME = "FinalizationRunner";

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, 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
@ -30,7 +30,7 @@
* @requires vm.cds
* @library /test/lib
* @compile CanGenerateAllClassHook.java
* @run main/othervm/native CanGenerateAllClassHook
* @run driver/native CanGenerateAllClassHook
*/
import jdk.test.lib.cds.CDSTestUtils;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, 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,8 +31,8 @@
* @modules java.compiler
* java.instrument
* jdk.jartool/sun.tools.jar
* @run main RedefineClassHelper
* @run main/othervm RedefinePreviousVersions test
* @run driver RedefineClassHelper
* @run driver RedefinePreviousVersions test
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, 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.instrument
* @compile RetransformClassesZeroLength.java
* @run main RetransformClassesZeroLength
* @run driver RetransformClassesZeroLength
*/
import java.lang.instrument.ClassFileTransformer;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -41,7 +41,7 @@ import jdk.test.lib.process.OutputAnalyzer;
* java.management
* @build Agent
* @run driver ClassFileInstaller Agent
* @run main TestRedefineObject
* @run driver TestRedefineObject
* @run main/othervm -javaagent:agent.jar -Xlog:redefine+class+load=debug,redefine+class+timer=info Agent
*/
public class TestRedefineObject {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -26,6 +26,7 @@
* @summary Ensure logging can be enabled and successfully prints to stdout.
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @run driver TestBasicLogOutput
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, 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
@ -26,6 +26,7 @@
* @summary Ensure logging is default on stdout.
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @run driver TestDefaultLogOutput
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, 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,6 +27,7 @@
* @bug 8215398
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @run driver TestFullNames
*/
import java.io.File;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -26,6 +26,7 @@
* @summary Ensure multiple -Xlog arguments aggregate the logging options.
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @run driver TestMultipleXlogArgs
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -26,7 +26,7 @@
* @summary Ensure proper parsing of quoted output names for -Xlog arguments.
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @run main/othervm TestQuotedLogOutputs
* @run driver TestQuotedLogOutputs
*/
import java.io.File;

View File

@ -31,7 +31,7 @@
* @requires vm.flavor == "server"
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @run main/othervm/timeout=2400 -Xmx1g ClhsdbCDSCore
* @run driver/timeout=2400 ClhsdbCDSCore
*/
import java.io.File;

View File

@ -37,7 +37,7 @@ import jdk.test.lib.SA.SATestUtils;
* @summary Test ClassDump tool
* @requires vm.hasSA
* @library /test/lib
* @run main/othervm TestClassDump
* @run driver TestClassDump
*/
public class TestClassDump {

View File

@ -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/othervm TestCpoolForInvokeDynamic
* @run driver TestCpoolForInvokeDynamic
*/
public class TestCpoolForInvokeDynamic {

View File

@ -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/othervm TestDefaultMethods
* @run driver TestDefaultMethods
*/
public class TestDefaultMethods {

View File

@ -46,7 +46,7 @@ import jdk.test.lib.Utils;
* jdk.hotspot.agent/sun.jvm.hotspot.gc.g1
* jdk.hotspot.agent/sun.jvm.hotspot.memory
* jdk.hotspot.agent/sun.jvm.hotspot.runtime
* @run main/othervm TestG1HeapRegion
* @run driver TestG1HeapRegion
*/
public class TestG1HeapRegion {