Skip to content

Commit

Permalink
Deleting System.Runtime test failing after sync primitives change
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stephentoub authored and rajansingh10 committed Oct 16, 2015
1 parent 3020ee5 commit a667bfc
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/System.Runtime/tests/System/Threading/WaitHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static void WaitAll()
}

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

[Fact]
public static void DisposeTest()
{
var name = "MyCrazyMutexName" + Guid.NewGuid();
var handle = new Mutex(true, name);

handle.Dispose();

Assert.False(Mutex.TryOpenExisting(name, out handle));
// TODO: Better exceptions on .NET Native
//Assert.Throws<ObjectDisposedException>(() => handle.WaitOne(0));
}

[Fact]
public static void WaitTimeout()
{
Expand Down

0 comments on commit a667bfc

Please sign in to comment.