Skip to content

Commit 3d46554

Browse files
authored
Disabled test for local vars on IBM JDK (#7577)
1 parent 5ddb19d commit 3d46554

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dd-java-agent/agent-debugger/src/test/java/com/datadog/debugger/agent/CapturedSnapshotTest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
import org.junit.jupiter.api.BeforeEach;
9191
import org.junit.jupiter.api.Disabled;
9292
import org.junit.jupiter.api.Test;
93+
import org.junit.jupiter.api.condition.DisabledIf;
9394
import org.junit.jupiter.api.condition.EnabledForJreRange;
9495
import org.junit.jupiter.api.condition.EnabledOnJre;
9596
import org.junit.jupiter.api.condition.JRE;
@@ -1715,6 +1716,9 @@ public void evaluateAtExitFalse() throws IOException, URISyntaxException {
17151716
}
17161717

17171718
@Test
1719+
@DisabledIf(
1720+
value = "datadog.trace.api.Platform#isJ9",
1721+
disabledReason = "we cannot get local variable debug info")
17181722
public void uncaughtExceptionConditionLocalVar() throws IOException, URISyntaxException {
17191723
final String CLASS_NAME = "CapturedSnapshot05";
17201724
LogProbe probe =
@@ -1745,6 +1749,9 @@ public void uncaughtExceptionConditionLocalVar() throws IOException, URISyntaxEx
17451749
}
17461750

17471751
@Test
1752+
@DisabledIf(
1753+
value = "datadog.trace.api.Platform#isJ9",
1754+
disabledReason = "we cannot get local variable debug info")
17481755
public void uncaughtExceptionCaptureLocalVars() throws IOException, URISyntaxException {
17491756
final String CLASS_NAME = "com.datadog.debugger.CapturedSnapshot31";
17501757
LogProbe probe = createProbeAtExit(PROBE_ID, CLASS_NAME, "uncaughtException", null);
@@ -1766,6 +1773,9 @@ public void uncaughtExceptionCaptureLocalVars() throws IOException, URISyntaxExc
17661773
}
17671774

17681775
@Test
1776+
@DisabledIf(
1777+
value = "datadog.trace.api.Platform#isJ9",
1778+
disabledReason = "we cannot get local variable debug info")
17691779
public void methodProbeLocalVarsLocalScopes() throws IOException, URISyntaxException {
17701780
final String CLASS_NAME = "com.datadog.debugger.CapturedSnapshot31";
17711781
LogProbe probe = createProbeAtExit(PROBE_ID, CLASS_NAME, "localScopes", "(String)");
@@ -1779,6 +1789,9 @@ public void methodProbeLocalVarsLocalScopes() throws IOException, URISyntaxExcep
17791789
}
17801790

17811791
@Test
1792+
@DisabledIf(
1793+
value = "datadog.trace.api.Platform#isJ9",
1794+
disabledReason = "we cannot get local variable debug info")
17821795
public void methodProbeLocalVarsDeepScopes() throws IOException, URISyntaxException {
17831796
final String CLASS_NAME = "com.datadog.debugger.CapturedSnapshot31";
17841797
LogProbe probe = createProbeAtExit(PROBE_ID, CLASS_NAME, "deepScopes", "(String)");
@@ -1796,6 +1809,9 @@ public void methodProbeLocalVarsDeepScopes() throws IOException, URISyntaxExcept
17961809
}
17971810

17981811
@Test
1812+
@DisabledIf(
1813+
value = "datadog.trace.api.Platform#isJ9",
1814+
disabledReason = "we cannot get local variable debug info")
17991815
public void methodProbeExceptionLocalVars() throws IOException, URISyntaxException {
18001816
final String CLASS_NAME = "com.datadog.debugger.CapturedSnapshot31";
18011817
LogProbe probe = createProbeAtExit(PROBE_ID, CLASS_NAME, "caughtException", "(String)");

0 commit comments

Comments
 (0)