aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/tracer_SUITE.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/tracer_SUITE.erl b/test/tracer_SUITE.erl
index 86ec9ac..b4eb3cf 100644
--- a/test/tracer_SUITE.erl
+++ b/test/tracer_SUITE.erl
@@ -25,8 +25,13 @@
%% We initialize trace patterns here. Appropriate would be in
%% init_per_suite/1, but this works just as well.
all() ->
- cowboy_tracer_h:set_trace_patterns(),
- cowboy_test:common_all().
+ case code:is_module_native(?MODULE) of
+ true ->
+ {skip, "The Cowboy tracer is not compatible with native code."};
+ false ->
+ cowboy_tracer_h:set_trace_patterns(),
+ cowboy_test:common_all()
+ end.
%% We want tests for each group to execute sequentially
%% because we need to modify the protocol options. Groups