File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
server/src/test/java/org/elasticsearch/bootstrap Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1212import com .carrotsearch .randomizedtesting .annotations .ThreadLeakFilters ;
1313
1414import org .apache .lucene .tests .util .LuceneTestCase ;
15+ import org .elasticsearch .jdk .RuntimeVersionFeature ;
1516import org .elasticsearch .test .GraalVMThreadsFilter ;
1617
1718import static org .hamcrest .Matchers .is ;
2021public class NoSecurityManagerTests extends LuceneTestCase {
2122
2223 public void testPrepopulateSecurityCaller () {
24+ assumeTrue ("security manager must be available" , RuntimeVersionFeature .isSecurityManagerAvailable ());
2325 assumeTrue ("Unexpected security manager:" + System .getSecurityManager (), System .getSecurityManager () == null );
2426 boolean isAtLeastJava17 = Runtime .version ().feature () >= 17 ;
2527 boolean isPrepopulated = Security .prepopulateSecurityCaller ();
You can’t perform that action at this time.
0 commit comments