Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Runtime.Loader.Tests fail on Android #36839

Closed
11 tasks
Tracked by #64603
steveisok opened this issue May 21, 2020 · 3 comments
Closed
11 tasks
Tracked by #64603

System.Runtime.Loader.Tests fail on Android #36839

steveisok opened this issue May 21, 2020 · 3 comments
Labels
Milestone

Comments

@steveisok
Copy link
Member

These tests fail on android:

  • ContextualReflectionTest.AssemblyLoadStringMultiLoadedAssemblyDefault
  • ContextualReflectionTest.AssemblyLoadStringMultiLoadedAssemblyIsolated
  • ContextualReflectionTest.AssemblyLoadStringSharedAssemblyDefault
  • ContextualReflectionTest.TypeGetTypeStringMultiLoadedAssemblyIsolated
  • ContextualReflectionTest.ActivatorCreateInstanceNameGenericMultiLoadedAssemblyDefault
  • ContextualReflectionTest.AssemblyGetTypeStringMultiLoadedAssemblyIsolated
  • ContextualReflectionTest.AssemblyGetTypeStringMultiLoadedAssemblyDefault
  • ContextualReflectionTest.ActivatorCreateInstanceNameGenericMultiLoadedAssemblyIsolated
  • ContextualReflectionTest.ActivatorCreateInstanceNullGenericMultiLoadedAssemblyIsolated
  • ContextualReflectionTest.ActivatorCreateInstanceNullGenericMultiLoadedAssemblyDefault
  • ContextualReflectionTest.TypeGetTypeStringMultiLoadedAssemblyDefault

The common stack trace is:

Assert.Equal() Failure
Expected: \"Isolated\" System.Runtime.Loader.AssemblyLoadContext #1
Actual:   \"Default\" System.Runtime.Loader.DefaultAssemblyLoadContext #0   

at System.Runtime.Loader.Tests.ContextualReflectionTest.AssertAssemblyEqual(Assembly expected, Assembly actual) in /Users/steve/dev/net5/droid-runtime/src/libraries/System.Runtime.Loader/tests/ContextualReflection.cs:line 160
   at System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadTestCase(Func`1 func, Assembly nullExpected, Assembly defaultExpected, Assembly isolatedExpected) in /Users/steve/dev/net5/droid-runtime/src/libraries/System.Runtime.Loader/tests/ContextualReflection.cs:line 550
   at System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadStringMultiLoadedAssemblyDefault() in /Users/steve/dev/net5/droid-runtime/src/libraries/System.Runtime.Loader/tests/ContextualReflection.cs:line 610
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /Users/steve/dev/net5/droid-runtime/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 359

/cc @CoffeeFlux

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label May 21, 2020
@lambdageek lambdageek added this to the 6.0.0 milestone Jun 22, 2020
@lambdageek lambdageek removed the untriaged New issue has not been triaged by the area owner label Jun 22, 2020
@marek-safar marek-safar added untriaged New issue has not been triaged by the area owner and removed untriaged New issue has not been triaged by the area owner labels Jun 24, 2020
@MaximLipnin
Copy link
Contributor

It still fails, see more details in mono/mono#15142 and #34072. Since 34072 got moved to 7.0, it makes sense to do the same for this issue.

@steveisok
Copy link
Member Author

These all pass on device locally. Will reenable in a PR.

@steveisok
Copy link
Member Author

Actually, these are already enabled on Android. Closing.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants