diff options
author | Anders Svensson <[email protected]> | 2011-10-10 11:13:51 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-10-10 11:13:51 +0200 |
commit | cf1de23f71d22c1b9d9502882136b320a087d7e3 (patch) | |
tree | 5aeb1049b15d7e049f2668546f55e319fd3c900c /lib/diameter/test/diameter_transport_SUITE.erl | |
parent | 8476dbe6fe5308b544917d998f39173df5c69159 (diff) | |
parent | ac2810603b7aaad24129fadf887d9e8deff31d2f (diff) | |
download | otp-cf1de23f71d22c1b9d9502882136b320a087d7e3.tar.gz otp-cf1de23f71d22c1b9d9502882136b320a087d7e3.tar.bz2 otp-cf1de23f71d22c1b9d9502882136b320a087d7e3.zip |
Merge branch 'anders/diameter/testsuite_robustness/OTP-9619'
* anders/diameter/testsuite_robustness/OTP-9619:
Make testsuites more robust in case of init failure
Diffstat (limited to 'lib/diameter/test/diameter_transport_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_transport_SUITE.erl | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/diameter/test/diameter_transport_SUITE.erl b/lib/diameter/test/diameter_transport_SUITE.erl index 6ae06266f6..d556a903e5 100644 --- a/lib/diameter/test/diameter_transport_SUITE.erl +++ b/lib/diameter/test/diameter_transport_SUITE.erl @@ -33,10 +33,12 @@ end_per_suite/1]). %% testcases --export([tcp_accept/1, +-export([start/1, + tcp_accept/1, tcp_connect/1, sctp_accept/1, - sctp_connect/1]). + sctp_connect/1, + stop/1]). -export([accept/1, connect/1, @@ -101,7 +103,7 @@ suite() -> [{timetrap, {minutes, 2}}]. all() -> - [{group, all} | tc()]. + [start | tc()] ++ [{group, all}, stop]. groups() -> [{all, [parallel], tc()}]. @@ -119,10 +121,17 @@ end_per_group(_, _) -> ok. init_per_suite(Config) -> - ok = diameter:start(), [{sctp, have_sctp()} | Config]. end_per_suite(_Config) -> + ok. + +%% =========================================================================== + +start(_Config) -> + ok = diameter:start(). + +stop(_Config) -> ok = diameter:stop(). %% =========================================================================== |