Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip security manager tests for JDK 24+
  • Loading branch information
sarahchen6 committed Jun 25, 2025
commit 677410fbe11d0fa2c97613c850c08ab176a9a755
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ package datadog.trace.agent

import spock.lang.Specification
import spock.lang.Timeout
import spock.lang.IgnoreIf
import datadog.trace.api.Platform

import jvmbootstraptest.InitializationTelemetryCheck

@Timeout(30)
@IgnoreIf(reason = "SecurityManager is permanently disabled as of JDK 24", value = {
Platform.isJavaVersionAtLeast(24)
})
class InitializationTelemetryTest extends Specification {
def "block agent start-up"() {
// In this case, the SecurityManager blocks loading of the Premain Class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ package datadog.trace.agent

import spock.lang.Specification
import spock.lang.Timeout
import spock.lang.IgnoreIf
import datadog.trace.api.Platform

import jvmbootstraptest.SecurityManagerCheck
import jvmbootstraptest.TestSecurityManager

@Timeout(30)
@IgnoreIf(reason = "SecurityManager is permanently disabled as of JDK 24", value = {
Platform.isJavaVersionAtLeast(24)
})
class SecurityManagerTest extends Specification {
def "no env access"() {
expect:
Expand All @@ -27,4 +32,4 @@ class SecurityManagerTest extends Specification {
expect:
SecurityManagerCheck.runTestJvm(TestSecurityManager.NoNetworkAccess) == 0
}
}
}