aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/test/mnesia_frag_test.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <dgud@erlang.org>2017-09-15 09:47:19 +0200
committerDan Gudmundsson <dgud@erlang.org>2017-09-15 09:47:19 +0200
commit91a6512718034889851e12db699f7bb14971ca93 (patch)
tree9a10379c36051dc9f2cfabb72298fd9cb6333769 /lib/mnesia/test/mnesia_frag_test.erl
parent6e74c9a7e86301eb22c3095c07fc771070d1ceed (diff)
downloadotp-91a6512718034889851e12db699f7bb14971ca93.tar.gz
otp-91a6512718034889851e12db699f7bb14971ca93.tar.bz2
otp-91a6512718034889851e12db699f7bb14971ca93.zip
mnesia: Remove export_all in tests
Cleanup warnings
Diffstat (limited to 'lib/mnesia/test/mnesia_frag_test.erl')
-rw-r--r--lib/mnesia/test/mnesia_frag_test.erl21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/mnesia/test/mnesia_frag_test.erl b/lib/mnesia/test/mnesia_frag_test.erl
index 9f2102beb2..7371792fda 100644
--- a/lib/mnesia/test/mnesia_frag_test.erl
+++ b/lib/mnesia/test/mnesia_frag_test.erl
@@ -23,7 +23,17 @@
-author('hakan@erix.ericsson.se').
-include("mnesia_test_lib.hrl").
--compile([export_all]).
+-export([init_per_testcase/2, end_per_testcase/2,
+ init_per_group/2, end_per_group/2,
+ all/0, groups/0]).
+
+
+-export([nice_single/1, nice_multi/1, nice_access/1, iter_access/1,
+ consistency/1, evil_create/1, evil_delete/1, evil_change/1, evil_combine/1,
+ evil_loop/1, evil_delete_db_node/1]).
+
+
+-export([frag_dist/1]).
init_per_testcase(Func, Conf) ->
mnesia_test_lib:init_per_testcase(Func, Conf).
@@ -845,16 +855,7 @@ frag_rec_dist(Tab) ->
Fun = fun() -> mnesia:table_info(Tab, frag_size) end,
[Size || {_, Size} <- mnesia:activity(sync_dirty, Fun, mnesia_frag)].
-table_size(Tab) ->
- Node = mnesia:table_info(Tab, where_to_read),
- rpc:call(Node, mnesia, table_info, [Tab, size]).
-
sort_res(List) when is_list(List) ->
lists:sort(List);
sort_res(Else) ->
Else.
-
-rev_res(List) when is_list(List) ->
- lists:reverse(List);
-rev_res(Else) ->
- Else.