aboutsummaryrefslogtreecommitdiffstats
path: root/lib/megaco/test/megaco_pending_limit_test.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2010-10-12 10:37:22 +0200
committerLukas Larsson <[email protected]>2011-02-17 17:25:12 +0100
commit6261f06d39e990b45f08b79edebe7b18a6eb9f01 (patch)
tree0900cce5f409e70e9c5ec33af86d861bec82d539 /lib/megaco/test/megaco_pending_limit_test.erl
parent91298c06d77197433c68b3cc1d05eb966e1370e0 (diff)
downloadotp-6261f06d39e990b45f08b79edebe7b18a6eb9f01.tar.gz
otp-6261f06d39e990b45f08b79edebe7b18a6eb9f01.tar.bz2
otp-6261f06d39e990b45f08b79edebe7b18a6eb9f01.zip
Update megaco tests to conform with common_test standard
Diffstat (limited to 'lib/megaco/test/megaco_pending_limit_test.erl')
-rw-r--r--lib/megaco/test/megaco_pending_limit_test.erl61
1 files changed, 25 insertions, 36 deletions
diff --git a/lib/megaco/test/megaco_pending_limit_test.erl b/lib/megaco/test/megaco_pending_limit_test.erl
index 7c6c8354e8..fed572cb28 100644
--- a/lib/megaco/test/megaco_pending_limit_test.erl
+++ b/lib/megaco/test/megaco_pending_limit_test.erl
@@ -27,9 +27,9 @@
-export([t/0, t/1]).
-export([init_per_testcase/2, end_per_testcase/2]).
--export([all/1,
+-export([all/0,groups/0,init_per_group/2,end_per_group/2,
- sent/1,
+
sent_timer_late_reply/1,
sent_timer_exceeded/1,
sent_timer_exceeded_long/1,
@@ -37,11 +37,11 @@
sent_resend_exceeded/1,
sent_resend_exceeded_long/1,
- recv/1,
+
recv_limit_exceeded1/1,
recv_limit_exceeded2/1,
- tickets/1,
+
otp_4956/1,
otp_5310/1,
otp_5619/1
@@ -145,38 +145,27 @@ end_per_testcase(Case, Config) ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-all(suite) ->
- [
- sent,
- recv,
-
- %% Tickets last
- tickets
- ].
-
-sent(suite) ->
- [
- sent_timer_late_reply,
- sent_timer_exceeded,
- sent_timer_exceeded_long,
- sent_resend_late_reply,
- sent_resend_exceeded,
- sent_resend_exceeded_long
-
- ].
-
-recv(suite) ->
- [
- recv_limit_exceeded1,
- recv_limit_exceeded2
- ].
-
-tickets(suite) ->
- [
- otp_4956,
- otp_5310,
- otp_5619
- ].
+all() ->
+[{group, sent}, {group, recv}, {group, tickets}].
+
+groups() ->
+ [{sent, [],
+ [sent_timer_late_reply, sent_timer_exceeded,
+ sent_timer_exceeded_long, sent_resend_late_reply,
+ sent_resend_exceeded, sent_resend_exceeded_long]},
+ {recv, [],
+ [recv_limit_exceeded1, recv_limit_exceeded2]},
+ {tickets, [], [otp_4956, otp_5310, otp_5619]}].
+
+init_per_group(_GroupName, Config) ->
+ Config.
+
+end_per_group(_GroupName, Config) ->
+ Config.
+
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%