Skip to content

Cleanup named mutex tests #117128

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

Merged
merged 3 commits into from
Jun 30, 2025
Merged

Cleanup named mutex tests #117128

merged 3 commits into from
Jun 30, 2025

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Jun 29, 2025

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 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
Copy link
Contributor

@Copilot 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 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.

Copy link
Member

@mangod9 mangod9 left a comment

Choose a reason for hiding this comment

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

lgtm

@jkotas jkotas merged commit a131d0b into dotnet:main Jun 30, 2025
83 of 87 checks passed
@jkotas jkotas deleted the named-mutex branch June 30, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ctor_InvalidNames_Unix is failing on NativeAOT on Linux
3 participants