Skip to content

NativeAOT on-device tests #10079

Open
Open
@jonathanpeppers

Description

@jonathanpeppers

Android framework version

net10.0-android (Preview)

Affected platform version

.NET 10 Preview 4, NativeAOT runtime

Description

These are a list of tests I've disabled in:

  • Entire Java.Interop-Tests.dll assembly

  • GCBridge category, requires a "GC Bridge"

  • SSL category

  • NTLM category

  • AndroidClientHandler category:

04-25 12:21:24.792 29497 29572 I NUnit   : 7) Xamarin.Android.NetTests.AndroidClientHandlerIntegrationTests.HttpClientIntegrationTestBase.Send_Invalid (Mono.Android.NET-Tests)
04-25 12:21:24.792 29497 29572 I NUnit   : System.InvalidOperationException : Field '_nativeUnderlyingHandler' is missing from type 'Xamarin.Android.Net.AndroidClientHandler'.
04-25 12:21:24.792 29497 29572 I NUnit   : 
04-25 12:21:24.792 29497 29572 I NUnit   :    at Xamarin.Android.Net.AndroidClientHandler.GetUnderlyingHandler() + 0x2b4
04-25 12:21:24.792 29497 29572 I NUnit   :    at Xamarin.Android.Net.AndroidClientHandler..ctor() + 0x20
04-25 12:21:24.792 29497 29572 I NUnit   :    at Xamarin.Android.NetTests.HttpClientIntegrationTestBase.Send_Invalid() + 0x3c
04-25 12:21:24.792 29497 29572 I NUnit   :    at libMono.Android.NET-Tests!<BaseAddress>+0x1542e54
04-25 12:21:24.792 29497 29572 I NUnit   :    at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x10c
  • Java.LangTests.ObjectTest.JnienvCreateInstance_RegistersMultipleInstances fails with:
Expected: same as <com.xamarin.android.runtimetests.CreateInstance_OverrideAbsListView_Adapter{90ba161 V.ED.VC.. ......I. 0,0-0,0}>
But was:  <com.xamarin.android.runtimetests.CreateInstance_OverrideAbsListView_Adapter{90ba161 V.ED.VC.. ......I. 0,0-0,0}>

Steps to Reproduce

Run:

.\dotnet-local.cmd build tests\Mono.Android-Tests\Mono.Android-Tests\Mono.Android.NET-Tests.csproj -t:Install,RunTestApks -bl -p:PublishAot=true -c Release

Metadata

Metadata

Labels

Area: App RuntimeIssues in `libmonodroid.so`.Area: NativeAOTIssues that only occur when using NativeAOT.Area: Unit TestsIssues with repo unit tests.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions