Skip to content

Commit 142346c

Browse files
committed
Test only dwarf cstack on J9
1 parent 7ba5aa5 commit 142346c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ddprof-test/src/test/java/com/datadoghq/profiler/cpu/CTimerSamplerTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ protected void before() {
4747
public void test(@CStack String cstack) throws ExecutionException, InterruptedException {
4848
// timer_create is available on Linux only
4949
assumeTrue(Platform.isLinux());
50+
// On J9 we can use only "dwarf" cstack
51+
assumeFalse(Platform.isJ9() && !"dwarf".equals(cstack));
5052
for (int i = 0, id = 1; i < 100; i++, id += 3) {
5153
profiledCode.method1(id);
5254
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.util.concurrent.ExecutionException;
1717

1818
import static org.junit.jupiter.api.Assertions.assertFalse;
19+
import static org.junit.jupiter.api.Assumptions.assumeFalse;
1920

2021
public class SmokeWallTest extends CStackAwareAbstractProfilerTest {
2122
private ProfiledCode profiledCode;
@@ -33,6 +34,9 @@ protected void before() {
3334
@TestTemplate
3435
@ValueSource(strings = {"fp", "dwarf", "vm", "vmx"})
3536
public void test(@CStack String cstack) throws ExecutionException, InterruptedException {
37+
// On J9 we can use only "dwarf" cstack
38+
assumeFalse(Platform.isJ9() && !"dwarf".equals(cstack));
39+
3640
for (int i = 0, id = 1; i < 100; i++, id += 3) {
3741
profiledCode.method1(id);
3842
}

0 commit comments

Comments
 (0)