NativeAOT: Reenable failing networking tests on tvOS/x64 with NativeAOT (#21285)
This PR reenables failing tests on tvOS/x64 with NativeAOT as the
dotnet/runtime fix became available in:
cd064dd8cc
and got merged in to the xamarin net9.0 branch.
The tests were previously disabled in:
https://github.com/xamarin/xamarin-macios/pull/20949
---
Fixes: https://github.com/xamarin/xamarin-macios/issues/20972
This commit is contained in:
Родитель
5633f4e890
Коммит
22b5933ebb
|
@ -92,7 +92,6 @@ namespace MonoTouchFixtures.Network {
|
|||
[Test]
|
||||
public void TryReinsertExtractedConnectionTest ()
|
||||
{
|
||||
global::MonoTests.System.Net.Http.MessageHandlerTest.CheckTVOSNativeAotFailure ();
|
||||
TestRuntime.AssertXcodeVersion (13, 0);
|
||||
Assert.DoesNotThrow (() => {
|
||||
var conn = connectionGroup.ExtractConnection (endpoint, new NWProtocolTcpOptions ());
|
||||
|
|
|
@ -61,7 +61,6 @@ namespace MonoTouchFixtures.Network {
|
|||
[Test]
|
||||
public void SetIPLocalAddressPreference ()
|
||||
{
|
||||
global::MonoTests.System.Net.Http.MessageHandlerTest.CheckTVOSNativeAotFailure ();
|
||||
TestRuntime.AssertXcodeVersion (11, 0);
|
||||
|
||||
foreach (var ipOption in new [] { NWIPLocalAddressPreference.Default, NWIPLocalAddressPreference.Stable, NWIPLocalAddressPreference.Temporary }) {
|
||||
|
|
|
@ -52,13 +52,6 @@ namespace MonoTests.System.Net.Http {
|
|||
throw new NotImplementedException ($"Unknown handler type: {handler_type}");
|
||||
}
|
||||
|
||||
public static void CheckTVOSNativeAotFailure ()
|
||||
{
|
||||
#if NATIVEAOT && __TVOS__
|
||||
if (TestRuntime.IsSimulator && !TestRuntime.IsARM64)
|
||||
Assert.Ignore ("Causes hangs on tvossimulator-x64 with NativeAOT: https://github.com/xamarin/xamarin-macios/issues/20972");
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if !__WATCHOS__
|
||||
|
@ -71,7 +64,6 @@ namespace MonoTests.System.Net.Http {
|
|||
[TestCase (typeof (NSUrlSessionHandler))]
|
||||
public void DnsFailure (Type handlerType)
|
||||
{
|
||||
CheckTVOSNativeAotFailure ();
|
||||
TestRuntime.AssertSystemVersion (ApplePlatform.MacOSX, 10, 9, throwIfOtherPlatform: false);
|
||||
TestRuntime.AssertSystemVersion (ApplePlatform.iOS, 7, 0, throwIfOtherPlatform: false);
|
||||
|
||||
|
@ -458,7 +450,6 @@ namespace MonoTests.System.Net.Http {
|
|||
[TestCase (typeof (NSUrlSessionHandler))]
|
||||
public void RejectSslCertificatesServicePointManager (Type handlerType)
|
||||
{
|
||||
CheckTVOSNativeAotFailure ();
|
||||
TestRuntime.AssertSystemVersion (ApplePlatform.MacOSX, 10, 9, throwIfOtherPlatform: false);
|
||||
TestRuntime.AssertSystemVersion (ApplePlatform.iOS, 7, 0, throwIfOtherPlatform: false);
|
||||
|
||||
|
@ -856,8 +847,6 @@ namespace MonoTests.System.Net.Http {
|
|||
[TestCase (typeof (SocketsHttpHandler))]
|
||||
public void UpdateRequestUriAfterRedirect (Type handlerType)
|
||||
{
|
||||
CheckTVOSNativeAotFailure ();
|
||||
|
||||
// https://github.com/xamarin/xamarin-macios/issues/20629
|
||||
|
||||
var done = TestRuntime.TryRunAsync (TimeSpan.FromSeconds (30), async () => {
|
||||
|
@ -883,8 +872,6 @@ namespace MonoTests.System.Net.Http {
|
|||
[TestCase (typeof (SocketsHttpHandler))]
|
||||
public void RequestUriNotUpdatedIfNotRedirect (Type handlerType)
|
||||
{
|
||||
CheckTVOSNativeAotFailure ();
|
||||
|
||||
// https://github.com/xamarin/xamarin-macios/issues/20629
|
||||
|
||||
var done = TestRuntime.TryRunAsync (TimeSpan.FromSeconds (30), async () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче