diff --git a/src/libraries/System.Console/tests/ConsoleHandles.cs b/src/libraries/System.Console/tests/ConsoleHandles.cs index 3930c6c6875dd5..702d9378da6a3a 100644 --- a/src/libraries/System.Console/tests/ConsoleHandles.cs +++ b/src/libraries/System.Console/tests/ConsoleHandles.cs @@ -13,7 +13,7 @@ namespace System.Tests public partial class ConsoleTests { [Fact] - [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)] + [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)] public void OpenStandardInputHandle_ReturnsValidHandle() { using SafeFileHandle inputHandle = Console.OpenStandardInputHandle(); @@ -23,7 +23,7 @@ public void OpenStandardInputHandle_ReturnsValidHandle() } [Fact] - [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)] + [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)] public void OpenStandardOutputHandle_ReturnsValidHandle() { using SafeFileHandle outputHandle = Console.OpenStandardOutputHandle(); @@ -33,7 +33,7 @@ public void OpenStandardOutputHandle_ReturnsValidHandle() } [Fact] - [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)] + [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)] public void OpenStandardErrorHandle_ReturnsValidHandle() { using SafeFileHandle errorHandle = Console.OpenStandardErrorHandle(); @@ -43,7 +43,7 @@ public void OpenStandardErrorHandle_ReturnsValidHandle() } [Fact] - [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)] + [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)] public void OpenStandardHandles_DoNotOwnHandle() { SafeFileHandle inputHandle = Console.OpenStandardInputHandle(); @@ -69,7 +69,7 @@ public void OpenStandardHandles_DoNotOwnHandle() } [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] - [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)] + [PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)] public void OpenStandardHandles_CanBeUsedWithStream() { using RemoteInvokeHandle child = RemoteExecutor.Invoke(() => @@ -149,21 +149,21 @@ public void UnixConsoleStream_SeekableStdoutRedirection_WritesAllContent() } [Fact] - [PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.Browser)] + [PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst | TestPlatforms.Browser)] public void OpenStandardInputHandle_ThrowsOnUnsupportedPlatforms() { Assert.Throws(() => Console.OpenStandardInputHandle()); } [Fact] - [PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS)] + [PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void OpenStandardOutputHandle_ThrowsOnUnsupportedPlatforms() { Assert.Throws(() => Console.OpenStandardOutputHandle()); } [Fact] - [PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS)] + [PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void OpenStandardErrorHandle_ThrowsOnUnsupportedPlatforms() { Assert.Throws(() => Console.OpenStandardErrorHandle());