Skip to content

Commit 1f86814

Browse files
committed
8272551: mark hotspot runtime/modules tests which ignore external VM flags
Backport-of: fe7219710243dbb3b5bc4ad6ef3e93d0d203d4f7
1 parent 43240a8 commit 1f86814

20 files changed

+25
-5
lines changed

test/hotspot/jtreg/runtime/modules/ClassLoaderNoUnnamedModuleTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8202758
2727
* @summary Ensure that if the JVM encounters a ClassLoader whose unnamedModule field is not set an InternalError results.
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @compile ClassLoaderNoUnnamedModule.java

test/hotspot/jtreg/runtime/modules/IgnoreModulePropertiesTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8136930
2727
* @summary Test that the VM ignores explicitly specified module internal properties.
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @run driver IgnoreModulePropertiesTest

test/hotspot/jtreg/runtime/modules/ModuleOptionsTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
2626
* @bug 8136930
2727
* @summary Test that the VM only recognizes the last specified --list-modules
2828
* options but accumulates --add-module values.
29+
* @requires vm.flagless
2930
* @modules java.base/jdk.internal.misc
3031
* @library /test/lib
3132
* @run driver ModuleOptionsTest

test/hotspot/jtreg/runtime/modules/ModuleOptionsWarn.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8162415
2727
* @summary Test warnings for ignored properties.
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @run driver ModuleOptionsWarn

test/hotspot/jtreg/runtime/modules/ModuleStress/ExportModuleStressTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8156871
2727
* @summary package in the boot layer is repeatedly exported to unique module created in layers on top of the boot layer
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @compile ../CompilerUtils.java

test/hotspot/jtreg/runtime/modules/ModuleStress/ModuleStress.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8159262
2727
* @summary Test differing scenarios where a module's readability list and a package's exportability list should be walked
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @compile ../AccessCheck/ModuleLibrary.java

test/hotspot/jtreg/runtime/modules/ModuleStress/ModuleStressGC.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8159262
2727
* @summary layers over the boot layer are repeatedly created, during this iteration, GCs are forced to verify correct walk of module and package lists.
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @compile ../CompilerUtils.java

test/hotspot/jtreg/runtime/modules/ModulesSymLink.java

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* @summary Test with symbolic linked lib/modules
2929
* @bug 8220095
3030
* @requires os.family == "linux" | os.family == "mac"
31+
* @requires vm.flagless
3132
* @library /test/lib
3233
* @modules java.management
3334
* jdk.jlink

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModule2Dirs.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/*
2525
* @test
2626
* @summary Make sure --patch-module works with multiple directories.
27+
* @requires vm.flagless
2728
* @modules java.base/jdk.internal.misc
2829
* @library /test/lib
2930
* @compile PatchModule2DirsMain.java

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleCDS.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @requires vm.cds
2727
* @summary test that --patch-module works with CDS
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* jdk.jartool/sun.tools.jar

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleDupJavaBase.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
2424
/*
2525
* @test
2626
* @summary VM exit initialization results if java.base is specificed more than once to --patch-module.
27+
* @requires vm.flagless
2728
* @modules java.base/jdk.internal.misc
2829
* @library /test/lib
2930
* @run driver PatchModuleDupJavaBase

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleDupModule.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
2424
/*
2525
* @test
2626
* @summary Module system initialization exception results if a module is specificed twice to --patch-module.
27+
* @requires vm.flagless
2728
* @modules java.base/jdk.internal.misc
2829
* @library /test/lib
2930
* @run driver PatchModuleDupModule

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleJavaBase.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8130399
2727
* @summary Make sure --patch-module works for java.base.
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @compile PatchModuleMain.java

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @bug 8130399
2727
* @summary Make sure --patch-module works for modules besides java.base.
28+
* @requires vm.flagless
2829
* @modules java.base/jdk.internal.misc
2930
* @library /test/lib
3031
* @compile PatchModuleMain.java

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTestJar.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/*
2525
* @test
2626
* @summary Make sure --patch-module works when a jar file is specified for a module
27+
* @requires vm.flagless
2728
* @library /test/lib
2829
* @modules java.base/jdk.internal.misc
2930
* jdk.jartool/sun.tools.jar

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTestJarDir.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/*
2525
* @test
2626
* @summary Make sure --patch-module works when a jar file and a directory is specified for a module
27+
* @requires vm.flagless
2728
* @library /test/lib
2829
* @modules java.base/jdk.internal.misc
2930
* jdk.jartool/sun.tools.jar

test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTraceCL.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @bug 8069469
2727
* @summary Make sure -Xlog:class+load=info works properly with "modules" jimage,
2828
--patch-module, and with -Xbootclasspath/a
29+
* @requires vm.flagless
2930
* @modules java.base/jdk.internal.misc
3031
* @library /test/lib
3132
* @compile PatchModuleMain.java

test/hotspot/jtreg/runtime/modules/Visibility/PatchModuleVisibility.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @summary Ensure that a newly introduced java.base package placed within the --patch-module
2727
* directory is considered part of the boot loader's visibility boundary
2828
* @requires !(os.family == "windows")
29+
* @requires vm.flagless
2930
* @library /test/lib
3031
* @modules java.base/jdk.internal.misc
3132
* java.management

test/hotspot/jtreg/runtime/modules/Visibility/XbootcpNoVisibility.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @test
2626
* @summary Ensure that a class defined within a java.base package can not
2727
* be located via -Xbootclasspath/a
28+
* @requires vm.flagless
2829
* @library /test/lib
2930
* @modules java.base/jdk.internal.misc
3031
* java.management

test/hotspot/jtreg/runtime/modules/Visibility/XbootcpVisibility.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @summary Ensure that a package whose module has not been defined to the boot loader
2727
* is correctly located with -Xbootclasspath/a
2828
* @requires !(os.family == "windows")
29+
* @requires vm.flagless
2930
* @library /test/lib
3031
* @modules java.base/jdk.internal.misc
3132
* java.management

0 commit comments

Comments
 (0)