aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/inet_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-03-24 07:02:43 +0100
committerBjörn Gustavsson <[email protected]>2016-03-24 07:02:43 +0100
commitccae4cd1aaef5f30ba66871b52127f370e77f83f (patch)
tree09d765a0b4ed9ba71a4ec42da650ded850697996 /lib/kernel/test/inet_SUITE.erl
parent7805944629441961adc38250319fdac02c9390bb (diff)
downloadotp-ccae4cd1aaef5f30ba66871b52127f370e77f83f.tar.gz
otp-ccae4cd1aaef5f30ba66871b52127f370e77f83f.tar.bz2
otp-ccae4cd1aaef5f30ba66871b52127f370e77f83f.zip
inet_SUITE: Handle missing SCTP support in simple_netns/1
Diffstat (limited to 'lib/kernel/test/inet_SUITE.erl')
-rw-r--r--lib/kernel/test/inet_SUITE.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/kernel/test/inet_SUITE.erl b/lib/kernel/test/inet_SUITE.erl
index ee10747b0a..27c364c3e0 100644
--- a/lib/kernel/test/inet_SUITE.erl
+++ b/lib/kernel/test/inet_SUITE.erl
@@ -1118,9 +1118,13 @@ simple_netns(Config) when is_list(Config) ->
jog_netns_opt(L),
ok = gen_tcp:close(L),
%%
- {ok,S} = gen_sctp:open(),
- jog_netns_opt(S),
- ok = gen_sctp:close(S);
+ case gen_sctp:open() of
+ {ok,S} ->
+ jog_netns_opt(S),
+ ok = gen_sctp:close(S);
+ {error,eprotonosupport} ->
+ ok
+ end;
{error,einval} ->
{skip,"setns() not supported"}
end.