0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Disable the tracer suite when compiled natively

This commit is contained in:
Loïc Hoguin 2017-11-17 22:55:56 +01:00
parent ce5ab4b49a
commit aedd274e26
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

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