aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorArtur Cygan <[email protected]>2018-06-19 19:51:41 +0200
committerArtur Cygan <[email protected]>2018-06-20 22:17:01 +0200
commit8ea876b7a0892b53232eefd15d66e8b1365ff8fd (patch)
tree384656229cabe4e03ff4b5c596fb7102d5a1cbce /lib/tools
parent9d1fee0615550f09e0bf082d6ee1c4a5f86f2e93 (diff)
downloadotp-8ea876b7a0892b53232eefd15d66e8b1365ff8fd.tar.gz
otp-8ea876b7a0892b53232eefd15d66e8b1365ff8fd.tar.bz2
otp-8ea876b7a0892b53232eefd15d66e8b1365ff8fd.zip
Use bif for other ets tables counting
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/test/xref_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tools/test/xref_SUITE.erl b/lib/tools/test/xref_SUITE.erl
index 018f632948..4ec75f7962 100644
--- a/lib/tools/test/xref_SUITE.erl
+++ b/lib/tools/test/xref_SUITE.erl
@@ -2233,18 +2233,18 @@ variables(Conf) when is_list(Conf) ->
{{error, _, _}, _} = xref_base:variables(S108, [{verbose,false}]),
{ok, S109} = xref_base:set_library_path(S108, [], [{verbose,false}]),
- Tabs = length(ets:all()),
+ NoOfTables = erlang:system_info(ets_count),
{ok, S110} = eval("Eplus := closure E, TT := Eplus",
'closure()', S109),
{{ok, [{user, ['Eplus','TT']}]}, S111} = xref_base:variables(S110),
{ok, S112} = xref_base:forget(S111, ['TT','Eplus']),
- true = Tabs =:= length(ets:all()),
+ true = NoOfTables =:= erlang:system_info(ets_count),
{ok, NS0} = eval("Eplus := closure E", 'closure()', S112),
{{ok, [{user, ['Eplus']}]}, NS} = xref_base:variables(NS0),
ok = xref_base:delete(NS),
- true = Tabs =:= length(ets:all()),
+ true = NoOfTables =:= erlang:system_info(ets_count),
ok = file:delete(Beam),
ok.