Skip to content

Commit a9b700a

Browse files
authored
Disable some named synchronization object tests on Windows Server Core (#113482)
1 parent c3d95b4 commit a9b700a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libraries/System.Threading/tests/EventWaitHandleTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public void NamePrefixAndOptionsCompatibilityTest(bool currentUserOnly, bool cur
260260
}
261261
}
262262

263-
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // Windows Nano Server apparently uses the same namespace for the Local\ and Global\ prefixes
263+
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // Windows Nano Server and Server Core apparently use the same namespace for the Local\ and Global\ prefixes
264264
[MemberData(nameof(MutexTests.NameNamespaceTests_MemberData), MemberType = typeof(MutexTests))]
265265
[PlatformSpecific(TestPlatforms.Windows)] // names aren't supported on Unix
266266
public void NameNamespaceTest(

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public static IEnumerable<object[]> NameNamespaceTests_MemberData()
476476
}
477477
}
478478

479-
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // Windows Nano Server apparently uses the same namespace for the Local\ and Global\ prefixes
479+
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // Windows Nano Server and Server Core apparently use the same namespace for the Local\ and Global\ prefixes
480480
[MemberData(nameof(NameNamespaceTests_MemberData))]
481481
public void NameNamespaceTest(
482482
bool create_currentUserOnly,

src/libraries/System.Threading/tests/SemaphoreTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public void NamePrefixAndOptionsCompatibilityTest(bool currentUserOnly, bool cur
493493
}
494494
}
495495

496-
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // Windows Nano Server apparently uses the same namespace for the Local\ and Global\ prefixes
496+
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // Windows Nano Server and Server Core apparently use the same namespace for the Local\ and Global\ prefixes
497497
[MemberData(nameof(MutexTests.NameNamespaceTests_MemberData), MemberType = typeof(MutexTests))]
498498
[PlatformSpecific(TestPlatforms.Windows)] // names aren't supported on Unix
499499
public void NameNamespaceTest(

0 commit comments

Comments
 (0)