Skip to content

Commit f3b4f17

Browse files
committed
Disable SecurityManager in tests
SecurityManager is already removed in 9.1 and 8.19, but those changes are too large to backport to 8.18 and 9.0. This commit changes tests there to not run with security manager to avoid security manager specific failures even though release versions only runs with entitlements. closes #127784 closes #127785 closes #127786
1 parent de16e5a commit f3b4f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/bootstrap/BootstrapForTesting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public class BootstrapForTesting {
120120
IfConfig.logIfNecessary();
121121

122122
// install security manager if available and requested
123-
if (RuntimeVersionFeature.isSecurityManagerAvailable() && systemPropertyAsBoolean("tests.security.manager", true)) {
123+
if (RuntimeVersionFeature.isSecurityManagerAvailable() && systemPropertyAsBoolean("tests.security.manager", false)) {
124124
try {
125125
// initialize paths the same exact way as bootstrap
126126
Permissions perms = new Permissions();

0 commit comments

Comments
 (0)