aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wx_app_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-04-15 10:21:03 +0200
committerDan Gudmundsson <[email protected]>2016-04-22 09:14:00 +0200
commiteeb1a534c7be3648d74f490a3daaccb6bbe8545a (patch)
treed30cbe869fd90d312857f44cafd39301c79e867f /lib/wx/test/wx_app_SUITE.erl
parent7604209d02278b5547ae42fb328bfbc7d9043963 (diff)
downloadotp-eeb1a534c7be3648d74f490a3daaccb6bbe8545a.tar.gz
otp-eeb1a534c7be3648d74f490a3daaccb6bbe8545a.tar.bz2
otp-eeb1a534c7be3648d74f490a3daaccb6bbe8545a.zip
wx test: Setup timetraps
and avoid large logs when tests succed
Diffstat (limited to 'lib/wx/test/wx_app_SUITE.erl')
-rw-r--r--lib/wx/test/wx_app_SUITE.erl10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/wx/test/wx_app_SUITE.erl b/lib/wx/test/wx_app_SUITE.erl
index 0b885a78b8..3fd5bf689d 100644
--- a/lib/wx/test/wx_app_SUITE.erl
+++ b/lib/wx/test/wx_app_SUITE.erl
@@ -49,7 +49,7 @@ end_per_testcase(Func,Config) ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-suite() -> [{ct_hooks,[ts_install_cth]}].
+suite() -> [{ct_hooks,[ts_install_cth]}, {timetrap,{minutes,5}}].
all() ->
[fields, modules, exportall, app_depend, undef_funcs, appup].
@@ -221,12 +221,10 @@ check_apps([App|Apps]) ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-undef_funcs(suite) ->
- [];
-undef_funcs(doc) ->
- [];
+undef_funcs() ->
+ [{timetrap,{minutes,10}}].
+
undef_funcs(Config) when is_list(Config) ->
- catch test_server:timetrap(timer:minutes(10)),
App = wx,
AppFile = key1search(app_file, Config),
Mods = key1search(modules, AppFile),