Skip to content

Commit 6da7448

Browse files
committed
Update tests
1 parent ddb77af commit 6da7448

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

ddprof-test/src/test/java/com/datadoghq/profiler/wallclock/JvmtiBasedContextWallClockTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ protected void after() throws InterruptedException {
2020
base.after();
2121
}
2222

23+
@Override
24+
protected boolean isPlatformSupported() {
25+
// Liveness tracking requires Java 11+ and specific JVM types
26+
return Platform.isJ9();
27+
}
28+
2329
@RetryingTest(5)
2430
public void test() throws ExecutionException, InterruptedException {
2531
// thread local handshake available only since Java 15

ddprof-test/src/test/java/com/datadoghq/profiler/wallclock/JvmtiBasedWallClockThreadFilterTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
package com.datadoghq.profiler.wallclock;
22

3+
import com.datadoghq.profiler.Platform;
4+
35
public class JvmtiBasedWallClockThreadFilterTest extends WallClockThreadFilterTest {
6+
@Override
7+
protected boolean isPlatformSupported() {
8+
// Liveness tracking requires Java 11+ and specific JVM types
9+
return Platform.isJ9();
10+
}
411

512
@Override
613
protected String getProfilerCommand() {

0 commit comments

Comments
 (0)