Skip to content

Include Android IP interface property tests in the test project - #137907

Open
simonrozsival wants to merge 1 commit into
mainfrom
simonrozsival-openharmony-testing-history
Open

simonrozsival wants to merge 1 commit into
mainfrom
simonrozsival-openharmony-testing-history

Conversation

@simonrozsival

@simonrozsival simonrozsival commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

IPInterfacePropertiesTest_Android.cs was added in #63633 without being included in the test project's explicit compile items. #66147 later extended the tests to Linux-Bionic, but they still were not being built or run. Include the file alongside the other platform-specific IP interface property tests.

This was discovered while investigating the Android network interface speed changes in #136194.

Update stale assertions in IPInfoTest_AccessAllProperties_NoErrors to match the Android implementation: DnsAddresses returns an empty collection and IsDnsEnabled returns false, rather than throwing PlatformNotSupportedException. Allow speeds of -1 or greater, consistent with the existing network-interface basic test, since this class also runs on Linux-Bionic and speed queries can succeed in privileged environments.

Validated locally using CoreCLR Release on an Android 15/API 35 arm64 emulator: all six restored tests passed without skips, and the complete System.Net.NetworkInformation.Functional.Tests suite passed (245 passed, 0 failed, 0 skipped). The Android test project built with 0 warnings and 0 errors. No product code changes.

Note

This pull request was prepared by GitHub Copilot.

Update DNS expectations to match the Android implementation and allow known interface speeds on Linux-Bionic and privileged Android environments.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@simonrozsival
simonrozsival enabled auto-merge (squash) November 19, 2026 21:52

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants