Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/libraries/System.Net.Requests/tests/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
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))]
22 changes: 22 additions & 0 deletions src/libraries/System.Net.Requests/tests/QuicLoad.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

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
_ = QuicConnection.IsSupported && QuicListener.IsSupported;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
<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"
Expand Down