From f4157168f4747aab3e7dce1f367dbd5c3bb43715 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 15:53:17 +0000 Subject: [PATCH] Skip DnsGetHost*_LocalhostSubdomain_RespectsAddressFamily on Android (refs #128371) Android resolver returns IPv6 addresses when InterNetwork is requested, causing Assert.All() failures in the localhost subdomain tests. 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("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/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("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/dotnet/runtime/issues/128371", TestPlatforms.Android)] [Theory] [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)]