|
@@ -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
|