Skip to content

Commit fe72197

Browse files
committed
8272551: mark hotspot runtime/modules tests which ignore external VM flags
Reviewed-by: mseledtsov, jiefu
1 parent 05d64da commit fe72197

20 files changed

+25
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

0 commit comments

Comments
 (0)