-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add tests for GetInterfaceMap
on static interface methods
#90518
Conversation
Tagging subscribers to this area: @dotnet/area-system-reflection Issue DetailsAdds a the tests for #90351. The failing case is the case which checks cc @jkotas
|
I would recommend disabling the test against a new issue. |
Is there a proper way to do this, or do I just need to skip the test manually? I ask because it's using an interesting setup, where it returns an |
Comment out the failing case and add |
I also need to exclude some tests on mono by the looks of it (mono and coreclr seem to behave differently in some of the cases?), I will add an |
• Would be good to test these anyway • Added to see if the failures on mono are with static interface methods only, or to do with default implementation methods
• Haven't opened an issue for this yet - will follow up with an issue & commit to add the issue link
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.DUPLICATE_EXTENTS_DATA.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me, thank you!
I haven't opened the other issue yet, if you're alright with merging it without that issue then feel free, or if you wanted to open it that would be great since I'm struggling to run mono locally and therefore write a useful reproduction for the issue with specifics of which cases fail and what happens instead and what's expected. |
For the tracking issue, it is fine to just link to the test that is disabled. You do not need to go the extra mile to extract the disabled test into a small repro. |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
Native aot compiler fails on the new tests with:
I am going to push a fix for this crash. |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Fixes #90351.
Includes the currently single failing case from the comment #90351 (comment) - therefore I propose that all (/ or at least most) of the combinations are useful since they actually found a bug.
This probably can't be merged until it's fixed, or maybe that just needs to be disabled for now, but that's alright lol.
The failing case is the case which checks
C2Implicit<string>
's implementations ofI1<string>.G<T>
. Previously, until recently when some other unrelated (to this) changes to static interface methods were made, many more cases were broken.Related failure issues, which have had their tests disabled:
MakeGenericMethod
called on a static interface method fromGetInterfaceMap
'sTargetMethods
for a default interface implementation #90863cc @jkotas