Skip to content

Commit c7071e1

Browse files
authored
Sockets: Warn when local network access not granted. (#56023)
Works around #56022
1 parent 87acb9e commit c7071e1

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
@@ -453,6 +453,8 @@ end
453453
catch e
454454
if isa(e, Base.IOError) && Base.uverrorname(e.code) == "EPERM"
455455
@warn "UDP IPv4 broadcast test skipped (permission denied upon send, restrictive firewall?)"
456+
elseif Sys.isapple() && isa(e, Base.IOError) && Base.uverrorname(e.code) == "EHOSTUNREACH"
457+
@warn "UDP IPv4 broadcast test skipped (local network access not granded?)"
456458
else
457459
rethrow()
458460
end

0 commit comments

Comments
 (0)