From e670c016cdd904fbade8cdcd5854f0ff0ced10a4 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 17 Sep 2018 12:41:41 +0200 Subject: Skip performance test on build types other than 'opt' --- lib/stdlib/test/supervisor_SUITE.erl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/stdlib/test/supervisor_SUITE.erl b/lib/stdlib/test/supervisor_SUITE.erl index ed7dd04171..9370067910 100644 --- a/lib/stdlib/test/supervisor_SUITE.erl +++ b/lib/stdlib/test/supervisor_SUITE.erl @@ -2339,6 +2339,13 @@ order_of_children(_Config) -> %% Test that a non-simple supervisor scales well for starting and %% stopping many children. scale_start_stop_many_children(_Config) -> + case erlang:system_info(build_type) of + opt -> scale_start_stop_many_children(); + Other -> {skip,"Run on build type 'opt' only (current: '" ++ + atom_to_list(Other)++"')"} + end. + +scale_start_stop_many_children() -> process_flag(trap_exit, true), {ok, _Pid} = start_link({ok, {{one_for_one, 2, 3600}, []}}), N1 = 1000, -- cgit v1.2.3