Skip to content

Commit bda1e47

Browse files
authored
Do not fail profiler smoke tests on macos (#7558)
1 parent 0aa32f5 commit bda1e47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dd-smoke-tests/profiling-integration-tests/src/test/java/datadog/smoketest/CodeHotspotsTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import static org.junit.jupiter.api.Assertions.assertFalse;
77
import static org.junit.jupiter.api.Assertions.assertTrue;
88
import static org.junit.jupiter.api.Assertions.fail;
9+
import static org.junit.jupiter.api.Assumptions.assumeFalse;
910
import static org.openjdk.jmc.common.item.Attribute.attr;
1011
import static org.openjdk.jmc.common.unit.UnitLookup.NUMBER;
1112
import static org.openjdk.jmc.common.unit.UnitLookup.PLAIN_TEXT;
@@ -63,10 +64,9 @@ public final class CodeHotspotsTest {
6364

6465
@BeforeAll
6566
static void setupAll() throws Exception {
66-
if (Platform.isMac() && System.getenv("TEST_LIBDDPROF") == null) {
67-
throw new UnsupportedOperationException(
68-
"Set TEST_LIBDDPROF env variable to point to MacOS version of libjavaProfiler.so, and rerun.");
69-
}
67+
assumeFalse(
68+
Platform.isMac() || System.getenv("TEST_LIBDDPROF") == null,
69+
"Test skipped. Set TEST_LIBDDPROF env variable to point to MacOS version of libjavaProfiler.so, and rerun.");
7070
Files.createDirectories(LOG_FILE_BASE);
7171
}
7272

0 commit comments

Comments
 (0)