diff --git a/src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeStream.Unix.cs b/src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeStream.Unix.cs index 165c9787c6875..8816ad02f1995 100644 --- a/src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeStream.Unix.cs +++ b/src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeStream.Unix.cs @@ -30,7 +30,7 @@ public abstract partial class PipeStream : Stream private static readonly char[] s_invalidPathNameChars = Path.GetInvalidPathChars(); /// Prefix to prepend to all pipe names. - private static readonly string s_pipePrefix = Path.Combine(Path.GetTempPath(), "CoreFxPipe_"); + private static readonly string s_pipePrefix = Path.Combine(Path.GetTempPath(), (RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS"))) ? "x" : "CoreFxPipe_"); public override int Read(byte[] buffer, int offset, int count) { diff --git a/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs b/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs index 24cf85352ff2d..ab2666acd119e 100644 --- a/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs +++ b/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs @@ -556,7 +556,6 @@ public async Task ReadBlockAsync_RepeatsReadsUntilReadDesiredAmount() [InlineData(1, true)] [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] [SkipOnPlatform(TestPlatforms.LinuxBionic, "SElinux blocks UNIX sockets")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51390", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ReadAsync_Canceled_ThrowsException(int method, bool precanceled) { Func> func = method switch @@ -566,7 +565,7 @@ public async Task ReadAsync_Canceled_ThrowsException(int method, bool precancele _ => throw new Exception("unknown mode") }; - string pipeName = Guid.NewGuid().ToString("N"); + string pipeName = "x"; using (var serverStream = new NamedPipeServerStream(pipeName, PipeDirection.Out, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)) using (var clientStream = new NamedPipeClientStream(".", pipeName, PipeDirection.In, PipeOptions.Asynchronous)) { diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 80383f6943168..75be495884b95 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -329,11 +329,6 @@ - - - - -