aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-06-14 10:47:35 +0200
committerAnders Svensson <[email protected]>2017-06-14 16:38:22 +0200
commit4c1b591e376fafc42225b417160a912b7e957d0c (patch)
tree748d3815b6caf246af1c723e4fef5a8f96a86124 /lib
parent69c5a74179e13e145da3da70e02dd43881a82008 (diff)
downloadotp-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')
-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.