> The test sun/security/pkcs11/Provider/RequiredMechCheck.java extends > sun/security/pkcs11/PKCS11Test.java, which sets up a PKCS11Provider > configured with NSS config files located in the source tree directory > (sun/security/pkcs11/nss) for the dependent tests to run properly. This test > currently fails if that **pkcs11/nss** directory is made read-only because > these config files are updated during the test execution. Files located in > the source tree should not be modified when running tests. > This PR updates the PKCS11Test to copy the NSS config files to the Jtreg > scratch directory and configures the provider to use those files instead.
Fernando Guallini has updated the pull request incrementally with one additional commit since the last revision: Reusing Utils.CopyFiles ------------- Changes: - all: https://git.openjdk.org/jdk/pull/21665/files - new: https://git.openjdk.org/jdk/pull/21665/files/121de0aa..1b1eae95 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=21665&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21665&range=00-01 Stats: 61 lines in 2 files changed: 28 ins; 29 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/21665.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21665/head:pull/21665 PR: https://git.openjdk.org/jdk/pull/21665