Skip to content

Commit 6cd1ca2

Browse files
[tests] fix SubscribeToAppDomainUnhandledException(CoreCLR)
We lost a snippet that is present on main, causing this test to fail on `release/10.0.1xx`.
1 parent dcff35c commit 6cd1ca2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ public void SubscribeToAppDomainUnhandledException (AndroidRuntime runtime)
268268
IsRelease = true,
269269
};
270270
proj.SetRuntime (runtime);
271-
proj.SetAndroidSupportedAbis ("armeabi-v7a", "arm64-v8a", "x86", "x86_64");
271+
if (runtime == AndroidRuntime.MonoVM) {
272+
proj.SetAndroidSupportedAbis ("armeabi-v7a", "arm64-v8a", "x86", "x86_64");
273+
} else {
274+
proj.SetRuntimeIdentifiers (new [] {"arm64-v8a", "x86_64"});
275+
}
272276
proj.MainActivity = proj.DefaultMainActivity.Replace ("//${AFTER_ONCREATE}",
273277
@" AppDomain.CurrentDomain.UnhandledException += (sender, e) => {
274278
Console.WriteLine (""# Unhandled Exception: sender={0}; e.IsTerminating={1}; e.ExceptionObject={2}"",

0 commit comments

Comments
 (0)