diff options
author | Meri Khamoyan <merikhamoyan@microsoft.com> | 2022-08-03 13:59:51 +0300 |
---|---|---|
committer | Meri Khamoyan <merikhamoyan@microsoft.com> | 2022-08-03 13:59:51 +0300 |
commit | deed2ebc33c3a97f942eb5d6f4efd89ef6113977 (patch) | |
tree | 5a6025dcc7cd0e3cf92519d1a45ce461711a9b61 | |
parent | 03333c16b9237b3fc96fcefe8fae3543501899c9 (diff) |
#51390 remove CoreFxPipe_ from prefix51390_io_tests
-rw-r--r-- | src/libraries/Common/tests/TestUtilities/System/IO/FileCleanupTestBase.cs | 4 | ||||
-rw-r--r-- | src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeStream.Unix.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libraries/Common/tests/TestUtilities/System/IO/FileCleanupTestBase.cs b/src/libraries/Common/tests/TestUtilities/System/IO/FileCleanupTestBase.cs index c4901486ed3..855d78f3958 100644 --- a/src/libraries/Common/tests/TestUtilities/System/IO/FileCleanupTestBase.cs +++ b/src/libraries/Common/tests/TestUtilities/System/IO/FileCleanupTestBase.cs @@ -169,8 +169,8 @@ namespace System.IO } const int MinUdsPathLength = 104; // required min is 92, but every platform we currently target is at least 104 - const int MinAvailableForSufficientRandomness = 3; // we want enough randomness in the name to avoid conflicts between concurrent tests - string prefix = Path.Combine(Path.GetTempPath(), "CoreFxPipe_"); + const int MinAvailableForSufficientRandomness = 5; // we want enough randomness in the name to avoid conflicts between concurrent tests + string prefix = Path.GetTempPath(); int availableLength = MinUdsPathLength - prefix.Length - 1; // 1 - for possible null terminator Assert.True(availableLength >= MinAvailableForSufficientRandomness, $"UDS prefix {prefix} length {prefix.Length} is too long"); 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 165c9787c68..ad2612917c2 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 @@ namespace System.IO.Pipes private static readonly char[] s_invalidPathNameChars = Path.GetInvalidPathChars(); /// <summary>Prefix to prepend to all pipe names.</summary> - private static readonly string s_pipePrefix = Path.Combine(Path.GetTempPath(), "CoreFxPipe_"); + private static readonly string s_pipePrefix = Path.GetTempPath(); public override int Read(byte[] buffer, int offset, int count) { |