Skip to content

Commit 56e1364

Browse files
maleadtKristofferC
authored andcommitted
Sockets: Warn when local network access not granted. (#56023)
Works around #56022 (cherry picked from commit c7071e1)
1 parent ec1d55a commit 56e1364

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/Sockets/test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ end
452452
catch e
453453
if isa(e, Base.IOError) && Base.uverrorname(e.code) == "EPERM"
454454
@warn "UDP IPv4 broadcast test skipped (permission denied upon send, restrictive firewall?)"
455+
elseif Sys.isapple() && isa(e, Base.IOError) && Base.uverrorname(e.code) == "EHOSTUNREACH"
456+
@warn "UDP IPv4 broadcast test skipped (local network access not granded?)"
455457
else
456458
rethrow()
457459
end

0 commit comments

Comments
 (0)