From 4c1b591e376fafc42225b417160a912b7e957d0c Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Wed, 14 Jun 2017 10:47:35 +0200 Subject: Fix sctp check in examples suite To partake of the change in commit 69c5a741. --- lib/diameter/test/diameter_examples_SUITE.erl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/diameter/test') 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. -- cgit v1.2.3