aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-11-17 22:55:56 +0100
committerLoïc Hoguin <[email protected]>2017-11-17 22:55:56 +0100
commitaedd274e26e2c5c5871b5b45e247f392f324183c (patch)
tree754f58026325fe2875372ccabacc31f6fee58cff /test
parentce5ab4b49ae5b8c0f701334ada48a2e517079e1b (diff)
downloadcowboy-aedd274e26e2c5c5871b5b45e247f392f324183c.tar.gz
cowboy-aedd274e26e2c5c5871b5b45e247f392f324183c.tar.bz2
cowboy-aedd274e26e2c5c5871b5b45e247f392f324183c.zip
Disable the tracer suite when compiled natively
Diffstat (limited to 'test')
-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