-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Resolve missing Assert.IsType method in RuntimeBinder tests
#117657
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
Conversation
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.
Pull Request Overview
This PR adds an ILLink root descriptor to the Microsoft.CSharp test project to prevent trimming of the Xunit.Assert.IsType method, resolving recent test failures.
- Introduces
ILLink.Descriptors.xmlto preserve the specified assertion method during trimming. - Updates the test project file to include the new descriptor.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/libraries/Microsoft.CSharp/tests/Microsoft.CSharp.Tests.csproj | Adds <TrimmerRootDescriptor> to include the new linker descriptor. |
| src/libraries/Microsoft.CSharp/tests/ILLink.Descriptors.xml | Defines a root descriptor preserving the Xunit.Assert.IsType method. |
Comments suppressed due to low confidence (1)
src/libraries/Microsoft.CSharp/tests/ILLink.Descriptors.xml:1
- [nitpick] Consider adding a comment at the top of ILLink.Descriptors.xml explaining why
Xunit.Assert.IsTypeneeds to be preserved and referencing issue #117565. This will help future maintainers understand the rationale behind this descriptor.
<linker>
|
Tagging subscribers to this area: @cston |
Assert.IsType method in RuntimeBinder tests
|
/ba-g coreclr android timeout is unrelated |
Resolves #117565 I have not looked into what caused it to start failing recently.