[tests] Ignore ExceptionsTest.ManagedExceptionPassthrough on ARM64 desktop. (#16384)

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

Ref: https://github.com/xamarin/xamarin-macios/issues/16264
This commit is contained in:
Rolf Bjarne Kvinge 2022-10-19 14:40:57 +02:00 коммит произвёл GitHub
Родитель 40f4d778de
Коммит e4164d508a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа 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 ();