From aedd274e26e2c5c5871b5b45e247f392f324183c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 17 Nov 2017 22:55:56 +0100 Subject: Disable the tracer suite when compiled natively --- test/tracer_SUITE.erl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/tracer_SUITE.erl') 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 -- cgit v1.2.3