aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-09-17 12:41:41 +0200
committerSiri Hansen <[email protected]>2018-09-17 12:41:41 +0200
commite670c016cdd904fbade8cdcd5854f0ff0ced10a4 (patch)
treee131450e5cb5b265de1e13128b812806f32f1e7d /lib/stdlib
parent3a33f5ffe2d130789a7ebc45df75dbb56988016e (diff)
downloadotp-e670c016cdd904fbade8cdcd5854f0ff0ced10a4.tar.gz
otp-e670c016cdd904fbade8cdcd5854f0ff0ced10a4.tar.bz2
otp-e670c016cdd904fbade8cdcd5854f0ff0ced10a4.zip
Skip performance test on build types other than 'opt'
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/test/supervisor_SUITE.erl7
1 files changed, 7 insertions, 0 deletions
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,