aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-06-20 11:20:50 +0200
committerRickard Green <[email protected]>2016-06-22 17:04:26 +0200
commit9e48c3bd4417b33b907c2479bc4a1e8cd79a34b3 (patch)
treeec6af6f766081294c773ab84d1cb7e4b7f6f0aa3
parentb63047af07a983ff7ff17d33736c505f866b88a5 (diff)
downloadotp-9e48c3bd4417b33b907c2479bc4a1e8cd79a34b3.tar.gz
otp-9e48c3bd4417b33b907c2479bc4a1e8cd79a34b3.tar.bz2
otp-9e48c3bd4417b33b907c2479bc4a1e8cd79a34b3.zip
Skip nif_SUITE:consume_timeslice test when debug compiled
-rw-r--r--erts/emulator/test/nif_SUITE.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/erts/emulator/test/nif_SUITE.erl b/erts/emulator/test/nif_SUITE.erl
index a0e9f1bad6..b8fa7184b6 100644
--- a/erts/emulator/test/nif_SUITE.erl
+++ b/erts/emulator/test/nif_SUITE.erl
@@ -1443,6 +1443,17 @@ otp_9828_loop(Bin, Val) ->
consume_timeslice(Config) when is_list(Config) ->
+ case {erlang:system_info(debug_compiled),
+ erlang:system_info(lock_checking)} of
+ {false, false} ->
+ consume_timeslice_test(Config);
+ {false, true} ->
+ {skipped, "Lock checking enabled"};
+ _ ->
+ {skipped, "Debug compiled"}
+ end.
+
+consume_timeslice_test(Config) when is_list(Config) ->
CONTEXT_REDS = 2000,
Me = self(),
Go = make_ref(),