Skip to content

[tests] add IgnoreInterpreter category for one test #895

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

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

jonathanpeppers
Copy link
Member

jonathanpeppers added a commit to dotnet/android that referenced this pull request Oct 19, 2021
@jonathanpeppers
Copy link
Member Author

Testing this will be properly ignored here: dotnet/android#6363

@jonpryor
Copy link
Contributor

jonpryor commented Oct 20, 2021

Context: https://github.com/xamarin/xamarin-android/pull/6363
Context: https://github.com/xamarin/xamarin-android/pull/6363#issuecomment-937379007
Context: https://github.com/xamarin/java.interop/pull/893
Context: https://github.com/dotnet/runtime/issues/60638
Context: https://github.com/dotnet/runtime/compare/491ed9a112559872c31ae40da8f6d9977ba4ce3a...e013f14c5330375a18656dea8dca14e5602a3ae0

An "odd" problem arose in xamarin/xamarin-android#6363, which
attempted to bump to dotnet/runtime@e013f14c:
the [`JavaObjectTest.Dispose_Finalized()` test][0] started failing.
Doubly odd is that this test has been working fine for *years*, and
there are no "obviously relevant" changes in the dotnet/runtime diff.

There was a suggestion to use try using
[`FinalizeHelpers.PerformNoPinAction()`][1], but this didn't fix the
failing unit test.

In order to "unblock" the dotnet/runtime bump in
xamarin/xamarin-android, add a `[Category ("IgnoreInterpreter")]` to
the `Dispose_Finalized()` test, so that it can be ignored for now.

We have also filed dotnet/runtime#60638 to track a proper fix.

[0]: https://github.com/xamarin/java.interop/blob/4277ac96eb4f2dd191e86f7bc1b72f7bdd4fbb0c/tests/Java.Interop-Tests/Java.Interop/JavaObjectTest.cs#L112-L129
[1]: https://github.com/mono/mono/blob/8266c5604b8c03882f2b06af27fdea46b142d6b9/mono/mini/TestHelpers.cs#L12-L44

@jonpryor jonpryor merged commit d1d64c1 into main Oct 20, 2021
@jonpryor jonpryor deleted the ignoreinterpreter branch October 20, 2021 18:13
jonathanpeppers added a commit to dotnet/android that referenced this pull request Oct 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants