Skip to content

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

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
kouvel:FixTests
Mar 14, 2025
Merged

Disable some named synchronization object tests on Windows Server Core#113482
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
kouvel:FixTests

Conversation

@kouvel

@kouvel kouvel commented Mar 13, 2025

Copy link
Copy Markdown
Contributor

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 AI review requested due to automatic review settings March 13, 2025 17:10

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

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@kouvel

kouvel commented Mar 13, 2025

Copy link
Copy Markdown
Contributor Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

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

Thank you!

@MichalStrehovsky
MichalStrehovsky merged commit a9b700a into dotnet:main Mar 14, 2025
@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.

3 participants