diff --git a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4Config.java b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4Config.java index 94c181bf2e67d6..21bd7855570bf3 100644 --- a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4Config.java +++ b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4Config.java @@ -86,7 +86,7 @@ private JUnit4Config( private static boolean installSecurityManager(Properties systemProperties) { String securityManager = systemProperties.getProperty("java.security.manager"); - if (securityManager != null) { + if (securityManager != null && !securityManager.equals("allow")) { return false; // Don't install over the specified security manager } return Boolean.valueOf(