From e887913c3f14e03a6b02bc678a0b7357b86c0512 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 16:36:47 +0000 Subject: [PATCH 1/3] Initial plan From bb8b4f73ae96ce04209704f31236644bd25cb876 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 16:48:22 +0000 Subject: [PATCH 2/3] Fix tvOS test failures: skip symlink/named-pipe tests on iOS/tvOS - GetFileType_SymbolicLink: replace [Fact] with [ConditionalFact(typeof(MountHelper), nameof(MountHelper.CanCreateSymbolicLinks))] to skip when symlinks cannot be created (e.g., tvOS) - GetFileType_NamedPipe: add [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, ...)] since iOS/tvOS blocks binding to UNIX sockets Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com> --- .../SafeFileHandle/GetFileType.Unix.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs b/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs index f679d6617e34d8..b7716bbf656c43 100644 --- a/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs +++ b/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs @@ -23,6 +23,7 @@ public void GetFileType_Directory() } [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "iOS/tvOS blocks binding to UNIX sockets")] public async Task GetFileType_NamedPipe() { string pipePath = GetTestFilePath(); @@ -41,7 +42,7 @@ public async Task GetFileType_NamedPipe() await readerTask; } - [Fact] + [ConditionalFact(typeof(MountHelper), nameof(MountHelper.CanCreateSymbolicLinks))] public void GetFileType_SymbolicLink() { string targetPath = GetTestFilePath(); From ae5884a882d619f50b0dbb75942de89c5e91052d Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Thu, 12 Mar 2026 18:14:08 +0100 Subject: [PATCH 3/3] Update src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../SafeFileHandle/GetFileType.Unix.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs b/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs index b7716bbf656c43..e31fbeafc545ba 100644 --- a/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs +++ b/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/SafeFileHandle/GetFileType.Unix.cs @@ -23,7 +23,7 @@ public void GetFileType_Directory() } [Fact] - [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "iOS/tvOS blocks binding to UNIX sockets")] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "iOS/tvOS do not support creating FIFOs (named pipes) with mkfifo")] public async Task GetFileType_NamedPipe() { string pipePath = GetTestFilePath();