From c894fc82892d3bd200700fa44a9b89fcfe75e8a9 Mon Sep 17 00:00:00 2001 From: Simon Rozsival Date: Fri, 24 Apr 2026 09:52:59 +0200 Subject: [PATCH 1/2] [tests] Skip InflateCustomView_ShouldNotLeakGlobalRefs until global ref leak is fully resolved The test is failing across multiple CI configurations. Multiple fixes have been merged (dotnet/android#11112, dotnet/java-interop#1403, dotnet/java-interop#1410) but the leak is not fully resolved yet. Fixes: https://github.com/dotnet/android/issues/11201 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs b/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs index 7b549f0061f..f5bf03f6b8d 100644 --- a/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs +++ b/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs @@ -48,6 +48,7 @@ public void UpperAndLowerCaseCustomWidget_FromLibrary_ShouldNotThrowInflateExcep // https://github.com/dotnet/android/issues/11101 [Test] + [Ignore ("https://github.com/dotnet/android/issues/11201")] public void InflateCustomView_ShouldNotLeakGlobalRefs () { var inflater = (LayoutInflater) Application.Context.GetSystemService (Context.LayoutInflaterService); From ba194095396c0518e812b480129ca9e2f60637c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Rozs=C3=ADval?= Date: Fri, 24 Apr 2026 09:56:08 +0200 Subject: [PATCH 2/2] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs b/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs index f5bf03f6b8d..455905b1bd6 100644 --- a/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs +++ b/tests/Mono.Android-Tests/Mono.Android-Tests/Android.Widget/CustomWidgetTests.cs @@ -48,7 +48,7 @@ public void UpperAndLowerCaseCustomWidget_FromLibrary_ShouldNotThrowInflateExcep // https://github.com/dotnet/android/issues/11101 [Test] - [Ignore ("https://github.com/dotnet/android/issues/11201")] + [Ignore ("Currently failing/flaky due to unresolved custom view global ref leak: https://github.com/dotnet/android/issues/11201")] public void InflateCustomView_ShouldNotLeakGlobalRefs () { var inflater = (LayoutInflater) Application.Context.GetSystemService (Context.LayoutInflaterService);