using Xunit;
[assembly: SkipOnPlatform(TestPlatforms.Browser, "System.Net.Requests is not supported on Browser.")]
-[assembly: ActiveIssue("https://github.com/dotnet/runtime/issues/74795", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoLinuxArm64))]
--- /dev/null
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+using System;
+using System.Net.Quic;
+using System.Runtime.CompilerServices;
+
+namespace System.Net.Test.Common
+{
+ public static class QuicLoad
+ {
+ [ModuleInitializer]
+ internal static void InitializeQuic()
+ {
+ // This will load Quic (if supported) to avoid interference with RemoteExecutor
+ // See https://github.com/dotnet/runtime/pull/75424 for more details
+ // IsSupported currently does not unload lttng. If it does in the future,
+ // we may need to call some real Quic API here to get everything loaded properly
+ _ = OperatingSystem.IsLinux() && QuicConnection.IsSupported;
+ }
+ }
+}
<NoWarn>$(NoWarn);SYSLIB0014</NoWarn>
<!-- the res/xml/network_security_config.xml file comes from the System.Net.TestData package -->
<IncludeNetworkSecurityConfig Condition="'$(TargetOS)' == 'Android'">true</IncludeNetworkSecurityConfig>
+ <EnablePreviewFeatures>true</EnablePreviewFeatures>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="HttpWebRequestTest.cs" />
<Compile Include="HttpWebResponseTest.cs" />
+ <Compile Include="QuicLoad.cs" />
<Compile Include="RequestStreamTest.cs" />
<Compile Include="WebRequestTest.cs" />
<Compile Include="$(CommonTestPath)System\Net\Capability.Security.cs"