aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-10-10 11:13:44 +0200
committerAnders Svensson <[email protected]>2011-10-10 11:13:44 +0200
commit8476dbe6fe5308b544917d998f39173df5c69159 (patch)
tree3452c8f1b4a48e1b9ffd16aa1a19c836b789610b /lib/diameter
parentc5e09d9d4186ee97eaa4c1ac483da66df8bd7e26 (diff)
parentfb76a9149fddd06c5d06f2199193a4f976256533 (diff)
downloadotp-8476dbe6fe5308b544917d998f39173df5c69159.tar.gz
otp-8476dbe6fe5308b544917d998f39173df5c69159.tar.bz2
otp-8476dbe6fe5308b544917d998f39173df5c69159.zip
Merge branch 'anders/diameter/eprotonosupport/OTP-9615'
* anders/diameter/eprotonosupport/OTP-9615: gen_sctp:open/0-2 might return {error, eprotonosupport}
Diffstat (limited to 'lib/diameter')
-rw-r--r--lib/diameter/test/diameter_transport_SUITE.erl4
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