Skip to content

Cleanup named mutex tests - #117128

Merged
jkotas merged 3 commits into
dotnet:mainfrom
jkotas:named-mutex
Jun 30, 2025
Merged

Cleanup named mutex tests#117128
jkotas merged 3 commits into
dotnet:mainfrom
jkotas:named-mutex

Conversation

@jkotas

@jkotas jkotas commented Jun 29, 2025

Copy link
Copy Markdown
Member

Deduplicate issues for missing cross-process named mutex support on NativeAOT and Mono

Closes #70127

Deduplicate issues for missing cross-process named mutex support on NativeAOT and Mono

Closes dotnet#70127
Copilot AI review requested due to automatic review settings June 29, 2025 07:59
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 29, 2025

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 centralizes the logic for skipping named-mutex tests on platforms without cross-process support and cleans up individual ActiveIssue attributes.

  • Introduces IsCrossProcessNamedMutexSupported to determine when cross-process named mutexes are supported.
  • Replaces scattered [ActiveIssue] attributes with [ConditionalFact] and [ConditionalTheory] driven by the new predicate.
  • Updates GetValidNames to account for platforms lacking cross-process named mutex support.

Comment thread src/libraries/System.Threading/tests/MutexTests.cs
Comment thread src/libraries/System.Threading/tests/MutexTests.cs

@mangod9 mangod9 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

Comment thread src/libraries/System.Threading/tests/MutexTests.cs Outdated
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.

Ctor_InvalidNames_Unix is failing on NativeAOT on Linux

4 participants