[release/7.0.1xx] [tests] Ignore ExceptionsTest.ManagedExceptionPassthrough on ARM64 desktop. (#16590)

Ignore ExceptionsTest.ManagedExceptionPassthrough on ARM64 desktop until we
fix the underlying bug.

Ref: https://github.com/xamarin/xamarin-macios/issues/16264


Backport of #16384

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This commit is contained in:
VS MobileTools Engineering Service 2 2022-11-06 23:30:41 -08:00 коммит произвёл GitHub
Родитель e8858f6f6c
Коммит 9d654dac1a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -167,6 +167,15 @@ partial class TestRuntime
NUnit.Framework.Assert.Ignore (message);
#endif
}
public static void AssertNotARM64Desktop (string message = "This test does not run on an ARM64 desktop.")
{
#if __MACOS__ || __MACCATALYST__
if (IsARM64)
NUnit.Framework.Assert.Ignore (message);
#endif
}
public static void AssertIfSimulatorThenARM64 ()
{
#if !__MACOS__ && !__MACCATALYST__

Просмотреть файл

@ -143,6 +143,9 @@ namespace MonoTouchFixtures.ObjCRuntime {
#if !DEBUG && !__WATCHOS__
Assert.Ignore ("This test only works in debug mode in the simulator.");
#endif
TestRuntime.AssertNotARM64Desktop ("Exception handling doesn't work on ARM64 desktop: https://github.com/xamarin/xamarin-macios/issues/16264");
var hasDebugger = global::System.Diagnostics.Debugger.IsAttached;
InstallHandlers ();