From dfda276568cae16664393119187aac0400b99a17 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Tue, 16 Jun 2026 15:06:37 -0500 Subject: [PATCH] [Tests] Enable SubscribeToAppDomainUnhandledException on CoreCLR The test was previously skipped for both CoreCLR and NativeAOT, but the expected-sender switch already handled CoreCLR (null sender). Tighten the Assert.Ignore so the test runs on CoreCLR while still skipping on NativeAOT. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs b/tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs index 45e93207660..322a8d5034b 100644 --- a/tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs +++ b/tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs @@ -823,8 +823,8 @@ public void SubscribeToAppDomainUnhandledException ([Values] AndroidRuntime runt return; } - if (runtime == AndroidRuntime.CoreCLR || runtime == AndroidRuntime.NativeAOT) { - Assert.Ignore ("AppDomain.CurrentDomain.UnhandledException doesn't work in CoreCLR or NativeAOT"); + if (runtime == AndroidRuntime.NativeAOT) { + Assert.Ignore ("AppDomain.CurrentDomain.UnhandledException doesn't work in NativeAOT"); } var proj = new XamarinAndroidApplicationProject (packageName: PackageUtils.MakePackageName (runtime)) {