Browse Source

Disable the tracer suite when compiled natively

Loïc Hoguin 7 years ago
parent
commit
aedd274e26
1 changed files with 7 additions and 2 deletions
  1. 7 2
      test/tracer_SUITE.erl

+ 7 - 2
test/tracer_SUITE.erl

@@ -25,8 +25,13 @@
 %% We initialize trace patterns here. Appropriate would be in
 %% We initialize trace patterns here. Appropriate would be in
 %% init_per_suite/1, but this works just as well.
 %% init_per_suite/1, but this works just as well.
 all() ->
 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
 %% We want tests for each group to execute sequentially
 %% because we need to modify the protocol options. Groups
 %% because we need to modify the protocol options. Groups