From 47c8f8f8243bdf7f95566eef1c7f338c52590f2d Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Tue, 13 Dec 2011 12:28:12 +0100 Subject: Update skip condition in gen_sctp suite To the R15 behaviour, with a return value instead of badarg. --- lib/diameter/test/diameter_gen_sctp_SUITE.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/diameter') diff --git a/lib/diameter/test/diameter_gen_sctp_SUITE.erl b/lib/diameter/test/diameter_gen_sctp_SUITE.erl index be6d28beb2..7f435a6b7a 100644 --- a/lib/diameter/test/diameter_gen_sctp_SUITE.erl +++ b/lib/diameter/test/diameter_gen_sctp_SUITE.erl @@ -66,12 +66,12 @@ all() -> receive_what_was_sent]. init_per_suite(Config) -> - try gen_sctp:open() of + case gen_sctp:open() of {ok, Sock} -> gen_sctp:close(Sock), - Config - catch - error: badarg -> + Config; + {error, E} when E == eprotonosupport; + E == esocktnosupport -> {skip, no_sctp} end. -- cgit v1.2.3