Skip to content

Enable NativeAOT delegate function-pointer tests - #133401

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix/nativeaot-delegate-function-pointers
Sep 9, 2026
Merged

MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix/nativeaot-delegate-function-pointers

Conversation

@MichalStrehovsky

@MichalStrehovsky MichalStrehovsky commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Resolves dotnet/runtimelab#176.

Remove the misplaced IDispatch exclusion from TestFunctionPointer.

Remove the misplaced IDispatch exclusion from TestFunctionPointer. The separate COM test remains gated on IsBuiltInComEnabled.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 3dea65e4-6bec-47a1-b938-b02f43d8a0bb
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is a targeted removal of an inapplicable skip attribute and does not alter test logic or introduce new behavior beyond enabling the intended test to run on NativeAOT.

Pull request overview

This PR removes a NativeAOT-gated [ActiveIssue] attribute from TestFunctionPointer, allowing the delegate-as-function-pointer interop test to execute under NativeAOT. The IDispatch/COM-related coverage remains isolated to TestIDispatch (which uses [MarshalAs(UnmanagedType.IDispatch)] and native IDispatch* interop).

Changes:

  • Remove the runtimelab#176: IDispatch [ActiveIssue(..., Utilities.IsNativeAot)] exclusion from TestFunctionPointer.
File summaries
File Description
src/tests/Interop/PInvoke/Delegate/DelegateTest.cs Stops skipping the function-pointer delegate interop test on NativeAOT by removing a misplaced IDispatch-related ActiveIssue attribute.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/ba-g mono crash was known

@MichalStrehovsky
MichalStrehovsky enabled auto-merge (squash) September 9, 2026 05:10
@MichalStrehovsky
MichalStrehovsky merged commit cb38dd7 into dotnet:main Sep 9, 2026
96 of 98 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the fix/nativeaot-delegate-function-pointers branch September 9, 2026 05:10
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 9, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Triage tests that depend on COM

3 participants