summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicael Karlberg <bmk@erlang.org>2023-04-21 15:03:43 +0200
committerMicael Karlberg <bmk@erlang.org>2023-04-21 15:03:43 +0200
commit1b11dea3cb05b9a47286955306752cfe2865d24c (patch)
treeb8f6f3f0b7eba424699b8389a6656ad454cd69f3
parent7d3501becd10f60ec98aa09bae839203fe202655 (diff)
downloaderlang-1b11dea3cb05b9a47286955306752cfe2865d24c.tar.gz
[kernel|test] Add skip condition
Add skip condition for network related issues (on OpenBSD).
-rw-r--r--lib/kernel/test/gen_udp_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/kernel/test/gen_udp_SUITE.erl b/lib/kernel/test/gen_udp_SUITE.erl
index d37948db28..0c6ad39dc9 100644
--- a/lib/kernel/test/gen_udp_SUITE.erl
+++ b/lib/kernel/test/gen_udp_SUITE.erl
@@ -2616,6 +2616,10 @@ do_simple_sockaddr_send_recv(#{family := _Fam} = SockAddr, _) ->
?P("[server] send failed: ~p",
[Reason1]),
exit({skip, Reason1});
+ {error, enetunreach = Reason1} ->
+ ?P("[server] send failed: ~p",
+ [Reason1]),
+ exit({skip, Reason1});
{error, Reason1} ->
exit({send_failed, Reason1})
end
@@ -2641,6 +2645,10 @@ do_simple_sockaddr_send_recv(#{family := _Fam} = SockAddr, _) ->
?P("[server] send failed: ~p",
[Reason2]),
exit({skip, Reason2});
+ {error, enetunreach = Reason2} ->
+ ?P("[server] send failed: ~p",
+ [Reason2]),
+ exit({skip, Reason2});
{error, Reason2} ->
exit({send_failed, Reason2})
end