aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wxt.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-09-14 12:55:48 +0200
committerDan Gudmundsson <[email protected]>2017-09-14 12:55:48 +0200
commitfdc58a6b03fd238a6bd26403cac375f314a9383d (patch)
tree07b9b62aaac243ba84023f1444e2246baac8da8a /lib/wx/test/wxt.erl
parentdd46b3e151dd2da0a8339134647d69d8520fd922 (diff)
downloadotp-fdc58a6b03fd238a6bd26403cac375f314a9383d.tar.gz
otp-fdc58a6b03fd238a6bd26403cac375f314a9383d.tar.bz2
otp-fdc58a6b03fd238a6bd26403cac375f314a9383d.zip
wx: test remove export_all
Remove unnecessary warnings
Diffstat (limited to 'lib/wx/test/wxt.erl')
-rw-r--r--lib/wx/test/wxt.erl32
1 files changed, 1 insertions, 31 deletions
diff --git a/lib/wx/test/wxt.erl b/lib/wx/test/wxt.erl
index 265cd5c981..2b380606d5 100644
--- a/lib/wx/test/wxt.erl
+++ b/lib/wx/test/wxt.erl
@@ -20,7 +20,7 @@
%% Description : Shortcuts for running tests with wx internal test_server
%%-------------------------------------------------------------------
-module(wxt).
--compile(export_all).
+-export([t/0, t/1, t/2, user/0, user/1,user/2]).
%% Modules or suites can be shortcuts i.e. basic expands to wx_basic_SUITE.
%%
@@ -83,36 +83,6 @@ alias(Suite) when is_atom(Suite) ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-config_fname() ->
- "wx_test_case_config".
-
-%% Read default config file
-read_config() ->
- Fname = config_fname(),
- wx_test_lib:log("Consulting file ~s...~n", [Fname]),
- case file:consult(Fname) of
- {ok, Config} ->
- wx_test_lib:log("Read config ~w~n", [Config]),
- Config;
- _Error ->
- Config = wx_test_lib:default_config(),
- wx_test_lib:log("<>WARNING<> Using default config: ~w~n", [Config]),
- Config
- end.
-
-%% Write new default config file
-write_config(Config) when is_list(Config) ->
- Fname = config_fname(),
- {ok, Fd} = file:open(Fname, write),
- write_list(Fd, Config),
- file:close(Fd).
-
-write_list(Fd, [H | T]) ->
- ok = io:format(Fd, "~p.~n",[H]),
- write_list(Fd, T);
-write_list(_, []) ->
- ok.
-
test_case_fname() ->
"wx_test_case_info".