aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/test/runtime_tools_SUITE.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-04-22 14:53:19 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-04-22 14:53:19 +0200
commitb2f661092782f386047b03db0eb649f1ca9a3088 (patch)
tree63dc84908c68f4a6baff722261e38f73b1caee14 /lib/runtime_tools/test/runtime_tools_SUITE.erl
parent4a6ef55b3bcb8176eaf3383690808bdedf030a38 (diff)
downloadotp-b2f661092782f386047b03db0eb649f1ca9a3088.tar.gz
otp-b2f661092782f386047b03db0eb649f1ca9a3088.tar.bz2
otp-b2f661092782f386047b03db0eb649f1ca9a3088.zip
Modernize use of timetraps
Diffstat (limited to 'lib/runtime_tools/test/runtime_tools_SUITE.erl')
-rw-r--r--lib/runtime_tools/test/runtime_tools_SUITE.erl35
1 files changed, 4 insertions, 31 deletions
diff --git a/lib/runtime_tools/test/runtime_tools_SUITE.erl b/lib/runtime_tools/test/runtime_tools_SUITE.erl
index 6238c240e9..e1e7b85871 100644
--- a/lib/runtime_tools/test/runtime_tools_SUITE.erl
+++ b/lib/runtime_tools/test/runtime_tools_SUITE.erl
@@ -21,47 +21,20 @@
-include_lib("common_test/include/ct.hrl").
%% Test server specific exports
--export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
- init_per_group/2,end_per_group/2]).
--export([init_per_testcase/2, end_per_testcase/2]).
+-export([all/0, suite/0]).
%% Test cases
-export([app_file/1, appup_file/1, start_stop_app/1]).
-%% Default timetrap timeout (set in init_per_testcase)
--define(default_timeout, ?t:minutes(1)).
-
-init_per_testcase(_Case, Config) ->
- Dog = test_server:timetrap(?default_timeout),
- [{watchdog, Dog} | Config].
-
-end_per_testcase(_Case, Config) ->
- Dog = ?config(watchdog, Config),
- ?t:timetrap_cancel(Dog),
- ok.
-
-suite() -> [{ct_hooks,[ts_install_cth]}].
+suite() ->
+ [{ct_hooks,[ts_install_cth]},
+ {timetrap, {minutes, 1}}].
all() ->
[app_file,
appup_file,
start_stop_app].
-groups() ->
- [].
-
-init_per_suite(Config) ->
- Config.
-
-end_per_suite(_Config) ->
- ok.
-
-init_per_group(_GroupName, Config) ->
- Config.
-
-end_per_group(_GroupName, Config) ->
- Config.
-
app_file(_Config) ->
ok = ?t:app_test(runtime_tools),