Skip to content

Commit

Permalink
Do not enable security manager on JDK 24+
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHegarty committed Jan 29, 2025
1 parent a7b7f0d commit cd288e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gradle/testing/randomization.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ allprojects {
[propName: 'tests.asserts', value: "true", description: "Enables or disables assertions mode."],
[propName: 'tests.infostream', value: false, description: "Enables or disables infostream logs."],
[propName: 'tests.leaveTemporary', value: false, description: "Leave temporary directories after tests complete."],
[propName: 'tests.useSecurityManager', value: true, description: "Control security manager in tests.", buildOnly: true],
[propName: 'tests.useSecurityManager',
value: { -> rootProject.ext.runtimeJavaVersion <= JavaVersion.VERSION_23 ? 'true' : 'false' },
description: "Control security manager in tests.", buildOnly: true],
// component randomization
[propName: 'tests.codec', value: "random", description: "Sets the codec tests should run with."],
[propName: 'tests.directory', value: "random", description: "Sets the Directory implementation tests should run with."],
Expand Down

0 comments on commit cd288e2

Please sign in to comment.