Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EagerAppCDS] fix testcases due to upstream updates #618

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestDumpAndLoadClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @summary Test dumping with limited metaspace with loading of JVMCI related classes.
* VM should not crash but CDS dump will abort upon failure in allocating metaspace.
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test load the class failed with EagerAppCDS flow
* @library /lib/testlibrary /lib
* @library /test/lib
* @build Classes4CDS
* @build trivial.TestSimple
* @build TestSimpleWispUsage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @summary Test dumping with limited metaspace with loading of JVMCI related classes.
* VM should not crash but CDS dump will abort upon failure in allocating metaspace.
* @library /lib/testlibrary /lib
* @library /test/lib
* @build MyWebAppClassLoader
* @build Classes4CDS
* @build TestSimple
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestDumpAndLoadClassWithWisp.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test EagerAppCDS Flow with wisp
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestDumpAndLoadNotFound.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test dumping with not found class
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test dumping with verification failure
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestDumpListInParallel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @summary Test dumping with limited metaspace with loading of JVMCI related classes.
* VM should not crash but CDS dump will abort upon failure in allocating metaspace.
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestDumpUnsupportedCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @summary Test dumping with limited metaspace with loading of JVMCI related classes.
* VM should not crash but CDS dump will abort upon failure in allocating metaspace.
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestLoadClassFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @summary Test dumping with limited metaspace with loading of JVMCI related classes.
* VM should not crash but CDS dump will abort upon failure in allocating metaspace.
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestRegisterClassLoader.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test class loader register in EagerCDS
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules jdk.compiler
* @modules java.base/jdk.internal.misc
* @modules java.base/com.alibaba.util:+open
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestSuppressingAppCDSErrors.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test suppressing AppCDS startup failure.
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/TestWispWithAppCDS.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test EagerAppCDS Flow with wisp
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test dumping with not found class
* @library /lib/testlibrary /lib
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/testClassLoaderJVMTI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#
# @test
# @summary test JVMTI API for preparation of class loader
# @library /lib/testlibrary /lib
# @library /test/lib
# @modules jdk.compiler
# @modules java.base/jdk.internal.misc
# @requires os.arch=="amd64" | os.arch=="aarch64"
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/cds/testDelegatingClassLoaderJVMTI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#
# @test
# @summary test JVMTI API for preparation of Delegating class loader
# @library /lib/testlibrary /lib
# @library /test/lib
# @modules jdk.compiler
# @modules java.base/jdk.internal.misc
# @requires os.arch=="amd64" | os.arch=="aarch64"
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/quickstart/TestAssemblyFiles.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test files assemblied into JDK
* @library /lib
* @library /test/lib
* @library /lib/testlibrary
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run main/othervm TestAssemblyFiles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test the flow to determine tracer or replayer
* @library /lib
* @library /test/lib
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run main/othervm/timeout=600 TestDeterminingTracerOrReplayer
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @modules java.base/sun.security.action
* @summary Test dumping using jcmd
* @library /lib
* @library /test/lib
* @build TestDump
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run driver ClassFileInstaller -jar test-notifyDumpByJcmd.jar TestDump TestDump$Policy TestDump$ClassLoadingPolicy TestDump$WatcherThread
Expand Down
4 changes: 2 additions & 2 deletions jdk/test/com/alibaba/quickstart/TestEnvVariableDump.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*
* @test
* @summary Test Environment Variable Dump
* @library /lib /lib/testlibrary
* @library /test/lib
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run main/othervm/timeout=600 TestEnvVariableDump
*/
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import java.io.*;
import java.util.Map;
import static jdk.testlibrary.Asserts.*;
import static jdk.test.lib.Asserts.*;

public class TestEnvVariableDump {
private static String cachepath = System.getProperty("user.dir");
Expand Down
4 changes: 2 additions & 2 deletions jdk/test/com/alibaba/quickstart/TestEnvVariableReplay.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test Environment Variable Dump
* @library /lib /lib/testlibrary
* @library /test/lib
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @build TestEnvClass
* @run driver ClassFileInstaller -jar test.jar TestEnvClass
Expand All @@ -11,7 +11,7 @@
import jdk.test.lib.process.ProcessTools;
import java.io.*;
import java.util.Map;
import static jdk.testlibrary.Asserts.*;
import static jdk.test.lib.Asserts.*;

public class TestEnvVariableReplay {

Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/quickstart/TestIntegrityCheck.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test Integrity Check
* @library /lib
* @library /test/lib
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run main/othervm/timeout=600 TestIntegrityCheck
*/
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/quickstart/TestNotifyDump.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @modules java.base/sun.security.action
* @summary Test dumping when process exits
* @library /lib
* @library /test/lib
* @build TestDump
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run driver ClassFileInstaller -jar test-notifyDump.jar TestDump TestDump$Policy TestDump$ClassLoadingPolicy TestDump$WatcherThread
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/quickstart/TestNotifyDumpByAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @modules java.base/sun.security.action
* @summary Test dumping using java level API hooks
* @library /lib
* @library /test/lib
* @build TestDump
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run driver ClassFileInstaller -jar test-notifyDumpByAPI.jar TestDump TestDump$Policy TestDump$ClassLoadingPolicy TestDump$WatcherThread
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/quickstart/TestNotifyDumpByJcmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test
* @modules java.base/sun.security.action
* @summary Test dumping using jcmd
* @library /lib
* @library /test/lib
* @build TestDump
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run driver ClassFileInstaller -jar test-notifyDumpByJcmd.jar TestDump TestDump$Policy TestDump$ClassLoadingPolicy TestDump$WatcherThread
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test the file lock to determine tracer or replayer
* @library /lib
* @library /test/lib
* @library /lib/testlibrary
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run main/othervm/timeout=600 TestParallelProcessRun
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/quickstart/TestPrintStat.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test -Xquickstart:printStat option
* @library /lib
* @library /test/lib
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run main/othervm/timeout=600 TestPrintStat
*/
Expand Down
2 changes: 1 addition & 1 deletion jdk/test/com/alibaba/quickstart/TestQuickStartOptions.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test
* @summary Test -Xquickstart options
* @library /lib
* @library /test/lib
* @requires os.arch=="amd64" | os.arch=="aarch64"
* @run main/othervm/timeout=600 TestQuickStartOptions
*/
Expand Down
Loading