Enable SendTo/Multicast AccessDenied tests on Apple platforms#131207
Draft
kotlarmilos with Copilot wants to merge 2 commits into
Draft
Enable SendTo/Multicast AccessDenied tests on Apple platforms#131207kotlarmilos with Copilot wants to merge 2 commits into
kotlarmilos with Copilot wants to merge 2 commits into
Conversation
|
Azure Pipelines: 16 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
…nreachable skip Co-authored-by: kotlarmilos <11523312+kotlarmilos@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enable SendTo Datagram UDP AccessDenied test for macOS
Enable SendTo/Multicast AccessDenied tests on Apple platforms
Jul 22, 2026
Member
|
/azp run runtime-ioslike |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This was referenced Jul 22, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SendTo<T>.Datagram_UDP_AccessDenied_Throws_DoesNotBindandSocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeedswere neutered by a runtimeSkipTestExceptionworkaround: on Apple platforms they skipped instead of asserting whenever a UDP send to the broadcast address returnedHostUnreachable(the macOS 15+ "Local Network" privacy permission surfacesEHOSTUNREACHrather thanEACCES). A skip is not a pass, so the coverage was effectively disabled.Changes
SendTo.cs— Removed theHostUnreachable/SkipTestExceptionbranch so the test assertsAccessDeniedagain; reverted[ConditionalFact]back to[Fact](the conditional existed only to honor the skip).SocketOptionNameTest.cs— Removed the equivalenttry/catchskip fromMulticastInterface_Set_AnyInterface_Succeeds, restoring the plainawait MulticastInterface_Set_Helper(0);body.Notes for reviewers
HostUnreachable, that permission is not yet in place and enablement should wait on it.SendTo_SyncSpan.Datagram_UDP_AccessDenied_Throws_DoesNotBindpasses.MulticastInterface_Set_AnyInterface_Succeedscould not be exercised in the sandbox (container blocks broadcast/multicast sends, failing inCreateBoundUdpSocketbefore the edited code) — an environment limitation, not a regression.