From f62a7fecc5ceee0a7c80cd7082cb7c72e4c282d7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 16:43:06 +0000 Subject: [PATCH] Skip DnsGetHostAddresses/Entry_LocalhostSubdomain_RespectsAddressFamily on Android (refs #128371) Android resolvers return IPv6 addresses when InterNetwork is requested, causing Assert.All() failures. Disable on Android pending investigation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../tests/FunctionalTests/GetHostAddressesTest.cs | 1 + .../tests/FunctionalTests/GetHostEntryTest.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostAddressesTest.cs b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostAddressesTest.cs index 249aa22ef43c49..53415c287b722b 100644 --- a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostAddressesTest.cs +++ b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostAddressesTest.cs @@ -256,6 +256,7 @@ public async Task DnsGetHostAddresses_LocalhostSubdomain_ReturnsLoopback(string // RFC 6761: "*.localhost" subdomains should respect AddressFamily parameter. // OS resolver is tried first, falling back to plain "localhost" resolution. + [ActiveIssue("https://github.com/dotnet/runtime/issues/128371", TestPlatforms.Android)] [Theory] [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] diff --git a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs index d3d1676c9b110f..46b279eebb0fdc 100644 --- a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs +++ b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs @@ -421,6 +421,7 @@ public async Task DnsGetHostEntry_LocalhostWithTrailingDot_ReturnsLoopback() // RFC 6761: "*.localhost" subdomains should respect AddressFamily parameter. // OS resolver is tried first, falling back to plain "localhost" resolution. + [ActiveIssue("https://github.com/dotnet/runtime/issues/128371", TestPlatforms.Android)] [Theory] [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)]