Skip to content
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

[iOS] Enable skipped System.Threading tests #73498

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ public void WaitHandleWaitAny()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void PingPong()
{
using (AutoResetEvent are1 = new AutoResetEvent(true), are2 = new AutoResetEvent(false))
Expand Down
2 changes: 0 additions & 2 deletions src/libraries/System.Threading/tests/ExecutionContextTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public static void DisposeTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void FlowTest()
{
ThreadTestHelpers.RunTestInBackgroundThread(() =>
Expand Down Expand Up @@ -170,7 +169,6 @@ public static void FlowTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void CaptureThenSuppressThenRunFlowTest()
{
ThreadTestHelpers.RunTestInBackgroundThread(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public void WaitHandleWaitAny()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void PingPong()
{
using (ManualResetEvent mre1 = new ManualResetEvent(true), mre2 = new ManualResetEvent(false))
Expand Down
7 changes: 0 additions & 7 deletions src/libraries/System.Threading/tests/ReaderWriterLockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public static void InvalidLockCookieTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void BasicLockTest()
{
var trwl = new TestReaderWriterLock();
Expand Down Expand Up @@ -511,7 +510,6 @@ public static void WaitingReadersTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void WaitingWritersTest()
{
var trwl = new TestReaderWriterLock();
Expand Down Expand Up @@ -543,7 +541,6 @@ public static void WaitingWritersTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void ReadersWaitingOnWaitingWriterTest()
{
var trwl = new TestReaderWriterLock();
Expand Down Expand Up @@ -594,7 +591,6 @@ public static void ReadersWaitingOnWaitingWriterTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void ReadersWaitingOnWaitingUpgraderTest()
{
var trwl = new TestReaderWriterLock();
Expand Down Expand Up @@ -648,7 +644,6 @@ public static void ReadersWaitingOnWaitingUpgraderTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void WaitingUpgradersTest()
{
var trwl = new TestReaderWriterLock();
Expand Down Expand Up @@ -694,7 +689,6 @@ public static void WaitingUpgradersTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void AtomicRecursiveReaderTest()
{
var trwl = new TestReaderWriterLock();
Expand All @@ -721,7 +715,6 @@ public static void AtomicRecursiveReaderTest()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public static void AtomicDowngradeTest()
{
var trwl = new TestReaderWriterLock();
Expand Down
1 change: 0 additions & 1 deletion src/libraries/System.Threading/tests/SemaphoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ public void CanWaitWithoutBlockingForReleasedCount()

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void AnonymousProducerConsumer()
{
using (Semaphore s = new Semaphore(0, int.MaxValue))
Expand Down