Skip to content

Commit 57713a0

Browse files
committed
Update testcase to add module jdk.crypto.cryptoki so that it can also work in FIPS mode
In FIPS mode, the SecureRandom come from the provider SunPKCS11. So, add the module “jdk.crypto.cryptoki” into the test case, so that the test case can initialize the provider SunPKCS11 and get the SecureRandom from it in FIPS mode. This will make the test case works both in the FIPS and non-FIPS mode. Signed-off-by: Tao Liu <[email protected]>
1 parent d0975f5 commit 57713a0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/jdk/java/lang/Class/GetPackageBootLoaderChildLayer.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@
2121
* questions.
2222
*/
2323

24+
/*
25+
* ===========================================================================
26+
* (c) Copyright IBM Corp. 2022, 2022 All Rights Reserved
27+
* ===========================================================================
28+
*/
29+
2430
/**
2531
* @test
2632
* @requires !vm.graal.enabled
2733
* @modules jdk.attach
28-
* @run main/othervm --limit-modules jdk.attach -Djdk.attach.allowAttachSelf
29-
* GetPackageBootLoaderChildLayer
34+
* @run main/othervm --limit-modules jdk.attach,jdk.crypto.cryptoki
35+
* -Djdk.attach.allowAttachSelf GetPackageBootLoaderChildLayer
3036
* @summary Exercise Class.getPackage on a class defined to the boot loader
3137
* but in a module that is in a child layer rather than the boot layer
3238
*/

0 commit comments

Comments
 (0)