Skip to content

Disable ReentrantWaitFromSyncContextTest test on Mono - #131548

Merged
eduardo-vp merged 1 commit into
dotnet:mainfrom
eduardo-vp:close-126138
Aug 24, 2026
Merged

eduardo-vp merged 1 commit into
dotnet:mainfrom
eduardo-vp:close-126138

Conversation

@eduardo-vp

Copy link
Copy Markdown
Member

Closes #126138. This was not an unexpected behavior on Mono, since Monitor.Wait is still implemented natively (CoreCLR moved to managed in .NET 11), it doesn't end up forwarding to SynchronizationContext.Wait which is a necessary condition for this test.

Copilot AI review requested due to automatic review settings July 29, 2026 19:37
@eduardo-vp eduardo-vp added area-System.Threading runtime-mono specific to the Mono runtime labels Jul 29, 2026
@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: @JulieLeeMSFT, @VSadov
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.

Pull request overview

This PR updates the System.Threading Monitor test suite to avoid running ReentrantWaitFromSyncContextTest on Mono, where the runtime’s Monitor.Wait implementation doesn’t exercise the SynchronizationContext.Wait reentrancy scenario the test is intended to validate.

Changes:

  • Replace the Mono-only ActiveIssue skip with a ConditionalFact guard that excludes Mono (PlatformDetection.IsNotMonoRuntime).
  • Add an explanatory comment documenting why the test is not applicable on Mono.

@VSadov VSadov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@eduardo-vp
eduardo-vp merged commit 213ba9b into dotnet:main Aug 24, 2026
102 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 25, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Threading runtime-mono specific to the Mono runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mono] Reentrant Monitor.Wait unexpected behavior

3 participants