aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-03-10 23:09:45 +0100
committerAnders Svensson <[email protected]>2017-06-11 16:30:35 +0200
commit111261d15df900bedd544ba1fab3a5880abda70a (patch)
tree53ac73c53bbd5bd4f0d28c69fb8e3d27bb61770d /lib/diameter/test
parentc9dd8410fb44034821c4068e1cc4df253b21f9f9 (diff)
downloadotp-111261d15df900bedd544ba1fab3a5880abda70a.tar.gz
otp-111261d15df900bedd544ba1fab3a5880abda70a.tar.bz2
otp-111261d15df900bedd544ba1fab3a5880abda70a.zip
Revert "diameter: Do not test SCTP on sparc-sun-solaris2.10"
The comment in commit 736ce20a isn't quite true. There's no different behaviour that diameter doesn't support, but there is a quirk with the loopback address that has caused many testcases to fail. This will be addressed in a subsequent commit. Reverts commit 736ce20a.
Diffstat (limited to 'lib/diameter/test')
-rw-r--r--lib/diameter/test/diameter_util.erl22
1 files changed, 7 insertions, 15 deletions
diff --git a/lib/diameter/test/diameter_util.erl b/lib/diameter/test/diameter_util.erl
index cca28dd23c..37fcbbc267 100644
--- a/lib/diameter/test/diameter_util.erl
+++ b/lib/diameter/test/diameter_util.erl
@@ -195,21 +195,13 @@ unique_string() ->
%% have_sctp/0
have_sctp() ->
- case erlang:system_info(system_architecture) of
- %% We do not support the sctp version present in solaris
- %% version "sparc-sun-solaris2.10", that behaves differently
- %% from later versions and linux
- "sparc-sun-solaris2.10" ->
- false;
- _->
- case gen_sctp:open() of
- {ok, Sock} ->
- gen_sctp:close(Sock),
- true;
- {error, E} when E == eprotonosupport;
- E == esocktnosupport -> %% fail on any other reason
- false
- end
+ case gen_sctp:open() of
+ {ok, Sock} ->
+ gen_sctp:close(Sock),
+ true;
+ {error, E} when E == eprotonosupport;
+ E == esocktnosupport -> %% fail on any other reason
+ false
end.
%% ---------------------------------------------------------------------------