RFR: 8342238: Test javax/crypto/CryptoPermissions/InconsistentEntries.java writes files in tested JDK dir
duke
duke at openjdk.org
Wed Feb 19 15:33:53 UTC 2025
On Mon, 20 Jan 2025 16:20:27 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:
> The test javax/crypto/CryptoPermissions/InconsistentEntries.java should not modify the JDK home directory under test as that could impact the results of other tests, or it could fail if the JDK home dir is read-only.
>
> This PR updates the test to
>
> - clone the tested JDK into the scratch directory.
> - create the required directory and file in the cloned JDK directory.
> - run a subprocess using the temporal JDK to test the scenario.
>
> There is no need to explicitly remove the tests files with an 'after' step, as JTreg will handle cleaning the scratch directory
@fguallini
Your change (at version f1c8db618a8bdc1ea2a0e6ba41483630a508f429) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23202#issuecomment-2668995453
More information about the security-dev
mailing list