Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit e203af3

Browse files
committed
Deleting System.Runtime test failing after sync primitives change
One System.Runtime test is testing the disposal of a Mutex. Besides that already being covered by multiple System.Threading tests, the test is creating the Mutex with a name, which after recent mscorlib changes fails on Unix, and is preventing successful CI runs. I'm simply deleting the test.
1 parent 0987afc commit e203af3

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/System.Runtime/tests/System/Threading/WaitHandle.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static void WaitAll()
6262
}
6363

6464
[Fact]
65-
[ActiveIssue("https://github.com/dotnet/coreclr/issues/630", PlatformID.AnyUnix)]
65+
[PlatformSpecific(PlatformID.Windows)] // names aren't supported on Unix
6666
public static void WaitAllSameNames()
6767
{
6868
Mutex[] wh = new Mutex[2];
@@ -72,19 +72,6 @@ public static void WaitAllSameNames()
7272
Assert.Throws<ArgumentException>(() => WaitHandle.WaitAll(wh));
7373
}
7474

75-
[Fact]
76-
public static void DisposeTest()
77-
{
78-
var name = "MyCrazyMutexName" + Guid.NewGuid();
79-
var handle = new Mutex(true, name);
80-
81-
handle.Dispose();
82-
83-
Assert.False(Mutex.TryOpenExisting(name, out handle));
84-
// TODO: Better exceptions on .NET Native
85-
//Assert.Throws<ObjectDisposedException>(() => handle.WaitOne(0));
86-
}
87-
8875
[Fact]
8976
public static void WaitTimeout()
9077
{

0 commit comments

Comments
 (0)