File tree 1 file changed +4
-4
lines changed
dd-smoke-tests/profiling-integration-tests/src/test/java/datadog/smoketest
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
import static org .junit .jupiter .api .Assertions .assertFalse ;
7
7
import static org .junit .jupiter .api .Assertions .assertTrue ;
8
8
import static org .junit .jupiter .api .Assertions .fail ;
9
+ import static org .junit .jupiter .api .Assumptions .assumeFalse ;
9
10
import static org .openjdk .jmc .common .item .Attribute .attr ;
10
11
import static org .openjdk .jmc .common .unit .UnitLookup .NUMBER ;
11
12
import static org .openjdk .jmc .common .unit .UnitLookup .PLAIN_TEXT ;
@@ -63,10 +64,9 @@ public final class CodeHotspotsTest {
63
64
64
65
@ BeforeAll
65
66
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." );
70
70
Files .createDirectories (LOG_FILE_BASE );
71
71
}
72
72
You can’t perform that action at this time.
0 commit comments