aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cosEventDomain/test/event_domain_SUITE.erl
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2016-06-16 08:25:28 +0200
committerLars Thorsen <[email protected]>2016-06-17 07:51:01 +0200
commit96b5dfa37b674ee83e3f5678ce6d21babfec6d1f (patch)
tree4124f82cff43cc308510226ed5364a49b1a46d7f /lib/cosEventDomain/test/event_domain_SUITE.erl
parentd28922838a940cb58f4fcfe0ea2b3bab7c687e7b (diff)
downloadotp-96b5dfa37b674ee83e3f5678ce6d21babfec6d1f.tar.gz
otp-96b5dfa37b674ee83e3f5678ce6d21babfec6d1f.tar.bz2
otp-96b5dfa37b674ee83e3f5678ce6d21babfec6d1f.zip
[cosEventDomain] Update the test suites to follow the new style
Diffstat (limited to 'lib/cosEventDomain/test/event_domain_SUITE.erl')
-rw-r--r--lib/cosEventDomain/test/event_domain_SUITE.erl16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/cosEventDomain/test/event_domain_SUITE.erl b/lib/cosEventDomain/test/event_domain_SUITE.erl
index b80b16ae6f..c20988701c 100644
--- a/lib/cosEventDomain/test/event_domain_SUITE.erl
+++ b/lib/cosEventDomain/test/event_domain_SUITE.erl
@@ -35,7 +35,7 @@
%% Macros
%%-----------------------------------------------------------------
--define(default_timeout, ?t:minutes(5)).
+-define(default_timeout, test_server:minutes(5)).
-define(match(ExpectedRes, Expr),
@@ -49,7 +49,7 @@
_ ->
io:format("###### ERROR ERROR ######~n~p~n",
[AcTuAlReS]),
- ?line exit(AcTuAlReS)
+ exit(AcTuAlReS)
end
end()).
@@ -89,12 +89,12 @@ cases() ->
%%-----------------------------------------------------------------
init_per_testcase(_Case, Config) ->
- ?line Dog=test_server:timetrap(?default_timeout),
+ Dog=test_server:timetrap(?default_timeout),
[{watchdog, Dog}|Config].
end_per_testcase(_Case, Config) ->
- Dog = ?config(watchdog, Config),
+ Dog = proplist:get_value(watchdog, Config),
test_server:timetrap_cancel(Dog),
ok.
@@ -129,15 +129,12 @@ end_per_suite(Config) when is_list(Config) ->
%%-----------------------------------------------------------------
%% Tests app file
%%-----------------------------------------------------------------
-app_test(doc) -> [];
-app_test(suite) -> [];
app_test(_Config) ->
ok=test_server:app_test(cosEventDomain),
ok.
-event_domain_api(doc) -> ["Testing the CosEventDomain Domain API", ""];
-event_domain_api(suite) -> [];
+%% Testing the CosEventDomain Domain API
event_domain_api(_Config) ->
%% We will setup a cluster looking like:
@@ -418,8 +415,7 @@ event_domain_api(_Config) ->
ok.
-event_domain_factory_api(doc) -> ["Testing the CosEventDomain Factory API", ""];
-event_domain_factory_api(suite) -> [];
+%% Testing the CosEventDomain Factory API
event_domain_factory_api(_Config) ->
Cyclic = #'CosNotification_Property'{name=?CycleDetection,