diff options
author | Anders Svensson <[email protected]> | 2011-12-13 12:28:12 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-12-16 18:25:30 +0100 |
commit | 47c8f8f8243bdf7f95566eef1c7f338c52590f2d (patch) | |
tree | 79b414a15bf23f8bd8567ba9ceb2687364c202fc /lib/diameter/test/diameter_gen_sctp_SUITE.erl | |
parent | 7d7aabcb8177f5f5795c52c1d7f9b2d75e78127a (diff) | |
download | otp-47c8f8f8243bdf7f95566eef1c7f338c52590f2d.tar.gz otp-47c8f8f8243bdf7f95566eef1c7f338c52590f2d.tar.bz2 otp-47c8f8f8243bdf7f95566eef1c7f338c52590f2d.zip |
Update skip condition in gen_sctp suite
To the R15 behaviour, with a return value instead of badarg.
Diffstat (limited to 'lib/diameter/test/diameter_gen_sctp_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_gen_sctp_SUITE.erl | 8 |
1 files changed, 4 insertions, 4 deletions
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. |