diff options
author | Ingela Anderton Andin <[email protected]> | 2016-09-10 13:53:39 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-09-10 13:53:39 +0200 |
commit | e6a4ec86ae7fa0d0fe2a07b94a1600f80e029633 (patch) | |
tree | a1752bed98367c8ffac23a3a4fb15814ff44b065 /lib | |
parent | 45bd8440673a814e068397235ce7794f22f1e3f5 (diff) | |
parent | e1ad19faba066d4d3d8c2796c6a95772a92fe1c4 (diff) | |
download | otp-e6a4ec86ae7fa0d0fe2a07b94a1600f80e029633.tar.gz otp-e6a4ec86ae7fa0d0fe2a07b94a1600f80e029633.tar.bz2 otp-e6a4ec86ae7fa0d0fe2a07b94a1600f80e029633.zip |
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diameter/test/diameter_util.erl | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/lib/diameter/test/diameter_util.erl b/lib/diameter/test/diameter_util.erl index 37fcbbc267..cca28dd23c 100644 --- a/lib/diameter/test/diameter_util.erl +++ b/lib/diameter/test/diameter_util.erl @@ -195,13 +195,21 @@ unique_string() -> %% have_sctp/0 have_sctp() -> - 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 + 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 end. %% --------------------------------------------------------------------------- |