From 589edd1d3a20053a99219001245b66c8bb50d95e Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Mon, 7 Feb 2022 13:52:06 +0300 Subject: [PATCH] Skip System.Net.NetworkInformation.Tests.PingTest.SendPingWithIPAddressAndBigSize test on Android --- src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs b/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs index 57a0a33c44609a..9a7cb1845cfd6f 100644 --- a/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs +++ b/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs @@ -80,7 +80,7 @@ private static byte[] GetPingPayload(AddressFamily addressFamily) public static bool DoesNotUsePingUtility => !UsesPingUtility; - public static bool UsesPingUtility => OperatingSystem.IsLinux() && !Capability.CanUseRawSockets(TestSettings.GetLocalIPAddress().AddressFamily); + public static bool UsesPingUtility => (OperatingSystem.IsLinux() || OperatingSystem.IsAndroid()) && !Capability.CanUseRawSockets(TestSettings.GetLocalIPAddress().AddressFamily); [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public async Task SendPingAsync_InvalidArgs()