Skip to content

Disable some named synchronization object tests on Windows Server Core #113482

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 1 commit into from
Mar 14, 2025

Conversation

kouvel
Copy link
Member

@kouvel kouvel commented Mar 13, 2025

The new failing tests were added in #112213. It looks like Windows Server Core also does not use different namespaces for local and global named synchronization objects.

@kouvel kouvel added this to the 10.0.0 milestone Mar 13, 2025
@kouvel kouvel requested a review from mangod9 March 13, 2025 17:10
@kouvel kouvel self-assigned this Mar 13, 2025
@Copilot Copilot AI review requested due to automatic review settings March 13, 2025 17:10
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 updates the conditional test attributes to disable named synchronization object tests on Windows Server Core, in response to the observed behavior that Windows Server Core uses the same namespace for local and global objects.

  • Updated conditional attributes in EventWaitHandleTests.cs, MutexTests.cs, and SemaphoreTests.cs to use PlatformDetection.IsNotWindowsNanoNorServerCore.
  • Adjusted inline comments to reflect the inclusion of Server Core in the exclusion criteria.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/libraries/System.Threading/tests/EventWaitHandleTests.cs Updated conditional attribute and comment for Windows Server Core.
src/libraries/System.Threading/tests/MutexTests.cs Updated conditional attribute and comment for Windows Server Core.
src/libraries/System.Threading/tests/SemaphoreTests.cs Updated conditional attribute and comment for Windows Server Core.

Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@kouvel
Copy link
Member Author

kouvel commented Mar 13, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thank you!

@MichalStrehovsky MichalStrehovsky merged commit a9b700a into dotnet:main Mar 14, 2025
100 of 107 checks passed
@kouvel kouvel deleted the FixTests branch March 14, 2025 11:14
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 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.

2 participants