Skip to content

Commit

Permalink
Update testcase to add module jdk.crypto.cryptoki so that it can also…
Browse files Browse the repository at this point in the history
… 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 <tao.liu@ibm.com>
  • Loading branch information
taoliult committed Aug 8, 2022
1 parent 96c53fa commit 0bc2385
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/jdk/java/lang/Class/GetPackageBootLoaderChildLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2022, 2022 All Rights Reserved
* ===========================================================================
*/

/**
* @test
* @requires !vm.graal.enabled
* @modules jdk.attach
* @run main/othervm --limit-modules jdk.attach -Djdk.attach.allowAttachSelf
* GetPackageBootLoaderChildLayer
* @run main/othervm --limit-modules jdk.attach,jdk.crypto.cryptoki
* -Djdk.attach.allowAttachSelf GetPackageBootLoaderChildLayer
* @summary Exercise Class.getPackage on a class defined to the boot loader
* but in a module that is in a child layer rather than the boot layer
*/
Expand Down

0 comments on commit 0bc2385

Please sign in to comment.