diff --git a/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs b/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs index 7eba21da18a9e3..6a473be5aeefd2 100644 --- a/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs +++ b/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs @@ -11,10 +11,9 @@ public class NamedPipeTest_UnixDomainSockets { [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49873", TestPlatforms.Android | TestPlatforms.LinuxBionic)] public void NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient() { - string pipeName = Path.Combine("/tmp", "pipe-tests-corefx-" + Path.GetRandomFileName()); + string pipeName = Path.Combine(Path.GetTempPath(), "pipe-tests-corefx-" + Path.GetRandomFileName()); var endPoint = new UnixDomainSocketEndPoint(pipeName); using (var pipeServer = new NamedPipeServerStream(pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.CurrentUserOnly)) @@ -29,10 +28,9 @@ public void NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient() [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49873", TestPlatforms.Android | TestPlatforms.LinuxBionic)] public async Task NamedPipeClient_Connects_With_UnixDomainSocketEndPointServer() { - string pipeName = Path.Combine("/tmp", "pipe-tests-corefx-" + Path.GetRandomFileName()); + string pipeName = Path.Combine(Path.GetTempPath(), "pipe-tests-corefx-" + Path.GetRandomFileName()); var endPoint = new UnixDomainSocketEndPoint(pipeName); using (var socketServer = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified))