Skip to content

Commit dae8613

Browse files
Copilotjkotas
andcommitted
Fix test platform conditions to exclude unsupported mobile Unix platforms
Co-authored-by: jkotas <[email protected]>
1 parent aa8cb64 commit dae8613

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libraries/System.Console/tests/ConsoleHandles.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace System.Tests
1212
public partial class ConsoleTests
1313
{
1414
[Fact]
15-
[PlatformSpecific(TestPlatforms.AnyUnix | TestPlatforms.Windows)]
15+
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
1616
public void OpenStandardInputHandle_ReturnsValidHandle()
1717
{
1818
using SafeFileHandle inputHandle = Console.OpenStandardInputHandle();
@@ -22,7 +22,7 @@ public void OpenStandardInputHandle_ReturnsValidHandle()
2222
}
2323

2424
[Fact]
25-
[PlatformSpecific(TestPlatforms.AnyUnix | TestPlatforms.Windows)]
25+
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
2626
public void OpenStandardOutputHandle_ReturnsValidHandle()
2727
{
2828
using SafeFileHandle outputHandle = Console.OpenStandardOutputHandle();
@@ -32,7 +32,7 @@ public void OpenStandardOutputHandle_ReturnsValidHandle()
3232
}
3333

3434
[Fact]
35-
[PlatformSpecific(TestPlatforms.AnyUnix | TestPlatforms.Windows)]
35+
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
3636
public void OpenStandardErrorHandle_ReturnsValidHandle()
3737
{
3838
using SafeFileHandle errorHandle = Console.OpenStandardErrorHandle();
@@ -42,7 +42,7 @@ public void OpenStandardErrorHandle_ReturnsValidHandle()
4242
}
4343

4444
[Fact]
45-
[PlatformSpecific(TestPlatforms.AnyUnix | TestPlatforms.Windows)]
45+
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
4646
public void OpenStandardHandles_DoNotOwnHandle()
4747
{
4848
SafeFileHandle inputHandle = Console.OpenStandardInputHandle();
@@ -68,7 +68,7 @@ public void OpenStandardHandles_DoNotOwnHandle()
6868
}
6969

7070
[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
71-
[PlatformSpecific(TestPlatforms.AnyUnix | TestPlatforms.Windows)]
71+
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
7272
public void OpenStandardHandles_CanBeUsedWithStream()
7373
{
7474
using RemoteInvokeHandle child = RemoteExecutor.Invoke(() =>

0 commit comments

Comments
 (0)