aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/gen_tcp_api_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kernel/test/gen_tcp_api_SUITE.erl')
-rw-r--r--lib/kernel/test/gen_tcp_api_SUITE.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/kernel/test/gen_tcp_api_SUITE.erl b/lib/kernel/test/gen_tcp_api_SUITE.erl
index f15f909432..63b9d90021 100644
--- a/lib/kernel/test/gen_tcp_api_SUITE.erl
+++ b/lib/kernel/test/gen_tcp_api_SUITE.erl
@@ -71,12 +71,11 @@ end_per_suite(_Config) ->
ok.
init_per_group(t_local, Config) ->
- try gen_tcp:connect({local,<<"/">>}, 0, [], 17) of
+ case gen_tcp:connect({local,<<"/">>}, 0, []) of
+ {error,eafnosupport} ->
+ {skip, "AF_LOCAL not supported"};
{error,_} ->
Config
- catch
- Class:badarg when Class =:= error; Class =:= exit ->
- {skip, "AF_LOCAL not supported"}
end;
init_per_group(_GroupName, Config) ->
Config.