aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-23 14:19:16 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-23 14:19:16 +0200
commit07aea2c4ef22eb5eb7205027665d65596828ec69 (patch)
tree3d9fa0ded3803cf516b95e02e83e37e9ebe0674a /erts/emulator
parent84025f9d594e33b0f540ce47241ca6c6460070b0 (diff)
parent761b3bb5f48e5c9df401debc4e3cc63457410f2e (diff)
downloadotp-07aea2c4ef22eb5eb7205027665d65596828ec69.tar.gz
otp-07aea2c4ef22eb5eb7205027665d65596828ec69.tar.bz2
otp-07aea2c4ef22eb5eb7205027665d65596828ec69.zip
Merge branch 'egil/erts/cuddle-lttng-tests'
* egil/erts/cuddle-lttng-tests: erts: Check for carrier capability specifically in test
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/test/lttng_SUITE.erl13
1 files changed, 6 insertions, 7 deletions
diff --git a/erts/emulator/test/lttng_SUITE.erl b/erts/emulator/test/lttng_SUITE.erl
index efc79f42ed..c64ddc40da 100644
--- a/erts/emulator/test/lttng_SUITE.erl
+++ b/erts/emulator/test/lttng_SUITE.erl
@@ -120,7 +120,7 @@ t_lttng_list(_Config) ->
%% com_ericsson_otp:carrier_pool_get
%% com_ericsson_otp:carrier_pool_put
t_carrier_pool(Config) ->
- case have_carriers() of
+ case have_carriers(ets_alloc) of
false ->
{skip, "No Memory Carriers configured on system."};
true ->
@@ -137,7 +137,7 @@ t_carrier_pool(Config) ->
%% com_ericsson_otp:carrier_destroy
%% com_ericsson_otp:carrier_create
t_memory_carrier(Config) ->
- case have_carriers() of
+ case have_carriers(ets_alloc) of
false ->
{skip, "No Memory Carriers configured on system."};
true ->
@@ -446,11 +446,10 @@ load_driver(Dir, Driver) ->
%% check
-have_carriers() ->
- Cap = element(3,erlang:system_info(allocator)),
- case Cap -- [sys_alloc,sys_aligned_alloc] of
- [] -> false;
- _ -> true
+have_carriers(Alloc) ->
+ case erlang:system_info({allocator,Alloc}) of
+ false -> false;
+ _ -> true
end.
have_async_threads() ->