Skip to content

Disable several tests incompatible with interpreter#121401

Merged
janvorli merged 1 commit intodotnet:mainfrom
janvorli:disable-part-of-testcallingconventions
Nov 6, 2025
Merged

Disable several tests incompatible with interpreter#121401
janvorli merged 1 commit intodotnet:mainfrom
janvorli:disable-part-of-testcallingconventions

Conversation

@janvorli
Copy link
Member

@janvorli janvorli commented Nov 6, 2025

These tests use COM interop, native varargs, marshalled pinvoke or handle exception thrown in pinvoked native code.

These tests use COM interop, native varargs, marshalled pinvoke or
handle exception thrown in pinvoked native code.
@janvorli janvorli added this to the 11.0.0 milestone Nov 6, 2025
@janvorli janvorli requested review from davidwrighton and kg November 6, 2025 00:24
@janvorli janvorli self-assigned this Nov 6, 2025
Copilot AI review requested due to automatic review settings November 6, 2025 00:24
Copy link
Contributor

Copilot AI left a 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 pull request adds interpreter incompatibility exclusions for tests that rely on P/Invoke marshalling, varargs, and COM, which are not currently supported by the CoreCLR interpreter (tracked in issue #118965).

Key changes:

  • Tests are conditionally skipped or excluded when running under the interpreter
  • Two approaches are used: runtime checks with IsCoreClrInterpreter and build-time exclusions with InterpreterIncompatible property

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/tests/baseservices/callconvs/TestCallingConventions.cs Adds runtime check to skip NonblittableFunctionPointers() when running under interpreter
src/tests/JIT/Directed/pinvoke/calli_excep.il Adds ActiveIssueAttribute to skip test when running under interpreter
src/tests/Interop/IJW/NativeVarargs/NativeVarargsTest.csproj Sets InterpreterIncompatible property to exclude native varargs test
src/tests/Interop/COM/Directory.Build.props Sets InterpreterIncompatible property to exclude all COM tests

@janvorli
Copy link
Member Author

janvorli commented Nov 6, 2025

/ba-g the failures are unrelated infra issues

@janvorli janvorli merged commit d7fba07 into dotnet:main Nov 6, 2025
74 of 83 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 7, 2025
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.

4 participants