aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/test/erl_global_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2010-10-12 10:40:08 +0200
committerLukas Larsson <[email protected]>2011-02-17 17:25:13 +0100
commit87e168ba95f57d6d5de88c2b2f06d37039bb40e5 (patch)
treed981850794423659cddd30bcc2df4119adcfb156 /lib/erl_interface/test/erl_global_SUITE.erl
parentf02cc10b4bda484996b7b93436fcaf8d714cb3da (diff)
downloadotp-87e168ba95f57d6d5de88c2b2f06d37039bb40e5.tar.gz
otp-87e168ba95f57d6d5de88c2b2f06d37039bb40e5.tar.bz2
otp-87e168ba95f57d6d5de88c2b2f06d37039bb40e5.zip
Update erl_interface tests to conform with common_test standard
Diffstat (limited to 'lib/erl_interface/test/erl_global_SUITE.erl')
-rw-r--r--lib/erl_interface/test/erl_global_SUITE.erl17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/erl_interface/test/erl_global_SUITE.erl b/lib/erl_interface/test/erl_global_SUITE.erl
index 4f332037c6..3d080f482d 100644
--- a/lib/erl_interface/test/erl_global_SUITE.erl
+++ b/lib/erl_interface/test/erl_global_SUITE.erl
@@ -20,24 +20,33 @@
%%
-module(erl_global_SUITE).
--include("test_server.hrl").
+-include_lib("test_server/include/test_server.hrl").
-include("erl_global_SUITE_data/erl_global_test_cases.hrl").
--export([all/1,init_per_testcase/2,fin_per_testcase/2,
+-export([all/0,suite/0,init_per_suite/1,end_per_suite/1,
+ init_per_testcase/2,end_per_testcase/2,
erl_global_registration/1, erl_global_whereis/1, erl_global_names/1]).
-import(runner, [get_term/1,send_term/2]).
-define(GLOBAL_NAME, global_register_node_test).
-all(suite) ->
+all() ->
[erl_global_registration, erl_global_whereis, erl_global_names].
+suite() -> [{suite_callbacks,[ts_install_scb]}].
+
+init_per_suite(Config) ->
+ Config.
+
+end_per_suite(_Config) ->
+ ok.
+
init_per_testcase(_Case, Config) ->
Dog = ?t:timetrap(?t:minutes(0.25)),
[{watchdog, Dog}|Config].
-fin_per_testcase(_Case, Config) ->
+end_per_testcase(_Case, Config) ->
Dog = ?config(watchdog, Config),
test_server:timetrap_cancel(Dog),
ok.