diff options
author | Anders Svensson <[email protected]> | 2017-06-14 10:47:35 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-06-14 16:38:22 +0200 |
commit | 4c1b591e376fafc42225b417160a912b7e957d0c (patch) | |
tree | 748d3815b6caf246af1c723e4fef5a8f96a86124 /lib/diameter/test/diameter_examples_SUITE.erl | |
parent | 69c5a74179e13e145da3da70e02dd43881a82008 (diff) | |
download | otp-4c1b591e376fafc42225b417160a912b7e957d0c.tar.gz otp-4c1b591e376fafc42225b417160a912b7e957d0c.tar.bz2 otp-4c1b591e376fafc42225b417160a912b7e957d0c.zip |
Fix sctp check in examples suite
To partake of the change in commit 69c5a741.
Diffstat (limited to 'lib/diameter/test/diameter_examples_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_examples_SUITE.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/diameter/test/diameter_examples_SUITE.erl b/lib/diameter/test/diameter_examples_SUITE.erl index fad54d62b2..eb99f10fe6 100644 --- a/lib/diameter/test/diameter_examples_SUITE.erl +++ b/lib/diameter/test/diameter_examples_SUITE.erl @@ -92,12 +92,10 @@ init_per_group(tcp = N, Config) -> [{group, N} | Config]; init_per_group(sctp = N, Config) -> - case gen_sctp:open() of - {ok, Sock} -> - gen_sctp:close(Sock), + case ?util:have_sctp() of + true -> [{group, N} | Config]; - {error, E} when E == eprotonosupport; - E == esocktnosupport -> %% fail on any other reason + false-> {skip, no_sctp} end. |