Remove WSL checks and platform detection (#53526)
authorViktor Hofer <viktor.hofer@microsoft.com>
Tue, 1 Jun 2021 14:40:41 +0000 (16:40 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Jun 2021 14:40:41 +0000 (14:40 +0000)
commit78fd895afddacad21e756ee7f6f8735f6843c78a
tree9402617fd3b139072e6dc3840cfe5e6349fbe260
parent897072a5e0d9198d0f64c2cf15fa5ff39c0766df
Remove WSL checks and platform detection (#53526)

WSL1 isn't a supported build or execution environment for dotnet/runtime.
Because of that removing the checks and platform detection for it as
that code path isn't necessary for WSL2 anymore as it contains a fully
featured kernel which behaves just a like a usual Linux distro.

Fixes https://github.com/dotnet/runtime/issues/18258
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.Proxy.cs
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Windows.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs
src/libraries/System.IO.FileSystem.DriveInfo/tests/DriveInfo.Unix.Tests.cs
src/libraries/System.Net.HttpListener/tests/HttpResponseStreamTests.cs
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceIPv4Statistics.cs
src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs
src/libraries/System.Text.Encoding/tests/Encoder/EncoderConvert2.cs