aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-06-14 16:40:10 +0200
committerAnders Svensson <[email protected]>2017-06-14 16:40:10 +0200
commit1863e1a7c3bfbdd040fc01a01863003746c2323e (patch)
treea29f52a895826b7ae9fdcee7ac2e2325e9435f23 /lib/diameter
parent0ca9129395f6fc6306554c7fb9515bc1610578f2 (diff)
parent4c1b591e376fafc42225b417160a912b7e957d0c (diff)
downloadotp-1863e1a7c3bfbdd040fc01a01863003746c2323e.tar.gz
otp-1863e1a7c3bfbdd040fc01a01863003746c2323e.tar.bz2
otp-1863e1a7c3bfbdd040fc01a01863003746c2323e.zip
Merge branch 'anders/diameter/transport/ERL-332'
* anders/diameter/transport/ERL-332: Fix sctp check in examples suite
Diffstat (limited to 'lib/diameter')
-rw-r--r--lib/diameter/test/diameter_examples_SUITE.erl8
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.