aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/warnings_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-02-25 07:38:39 +0100
committerBjörn Gustavsson <[email protected]>2016-02-25 14:49:49 +0100
commit5fe95cec32ddc92f6a483c24f6f591586ba065f7 (patch)
treea5363e6e4a9ad07656db97db377f9975fcc3d05c /lib/compiler/test/warnings_SUITE.erl
parent720ad8d62a908fa52ed2dcd34f30a01a940b2022 (diff)
downloadotp-5fe95cec32ddc92f6a483c24f6f591586ba065f7.tar.gz
otp-5fe95cec32ddc92f6a483c24f6f591586ba065f7.tar.bz2
otp-5fe95cec32ddc92f6a483c24f6f591586ba065f7.zip
Modernize use of timetraps
Either rely on the default 30 minutes timetrap, or set the timeout using the supported methods in common_test.
Diffstat (limited to 'lib/compiler/test/warnings_SUITE.erl')
-rw-r--r--lib/compiler/test/warnings_SUITE.erl14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl
index 2a425c2ae5..32cdc4ed94 100644
--- a/lib/compiler/test/warnings_SUITE.erl
+++ b/lib/compiler/test/warnings_SUITE.erl
@@ -43,19 +43,15 @@
redundant_boolean_clauses/1,
latin1_fallback/1,underscore/1,no_warnings/1]).
-% Default timetrap timeout (set in init_per_testcase).
--define(default_timeout, ?t:minutes(2)).
-
init_per_testcase(_Case, Config) ->
- ?line Dog = ?t:timetrap(?default_timeout),
- [{watchdog, Dog} | Config].
+ Config.
-end_per_testcase(_Case, Config) ->
- Dog = ?config(watchdog, Config),
- test_server:timetrap_cancel(Dog),
+end_per_testcase(_Case, _Config) ->
ok.
-suite() -> [{ct_hooks,[ts_install_cth]}].
+suite() ->
+ [{ct_hooks,[ts_install_cth]},
+ {timetrap,{minutes,2}}].
all() ->
test_lib:recompile(?MODULE),