Integrated: 8342238: Test javax/crypto/CryptoPermissions/InconsistentEntries.java writes files in tested JDK dir
Fernando Guallini
fguallini at openjdk.org
Thu Feb 20 18:56:00 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
This pull request has now been integrated.
Changeset: 16033ea7
Author: Fernando Guallini <fguallini at openjdk.org>
Committer: Rajan Halade <rhalade at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/16033ea79a01b27a7f5cbb31d64da0e80afc7dc3
Stats: 49 lines in 1 file changed: 21 ins; 14 del; 14 mod
8342238: Test javax/crypto/CryptoPermissions/InconsistentEntries.java writes files in tested JDK dir
Reviewed-by: jnimeh, rhalade
-------------
PR: https://git.openjdk.org/jdk/pull/23202
More information about the security-dev
mailing list