diff options
author | Anders Svensson <[email protected]> | 2011-10-06 12:05:36 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-10-10 11:07:48 +0200 |
commit | fb76a9149fddd06c5d06f2199193a4f976256533 (patch) | |
tree | e7e2fd55ad09a964c4dbeab371eef53372ce4fab /lib/diameter/test | |
parent | d01551f400e2a7944dcc10319be0c9f248ca3179 (diff) | |
download | otp-fb76a9149fddd06c5d06f2199193a4f976256533.tar.gz otp-fb76a9149fddd06c5d06f2199193a4f976256533.tar.bz2 otp-fb76a9149fddd06c5d06f2199193a4f976256533.zip |
gen_sctp:open/0-2 might return {error, eprotonosupport}
Previously error:badarg was raise if there was no underlying support
for SCTP. Handle both new and old failure until OTP-9239 is merged.
Diffstat (limited to 'lib/diameter/test')
-rw-r--r-- | lib/diameter/test/diameter_transport_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/diameter/test/diameter_transport_SUITE.erl b/lib/diameter/test/diameter_transport_SUITE.erl index d545859fe8..6ae06266f6 100644 --- a/lib/diameter/test/diameter_transport_SUITE.erl +++ b/lib/diameter/test/diameter_transport_SUITE.erl @@ -180,7 +180,9 @@ have_sctp() -> try gen_sctp:open() of {ok, Sock} -> gen_sctp:close(Sock), - true + true; + {error, eprotonosupport} -> %% fail on any other reason + false catch error: badarg -> false |