Skip to content

Commit 42c6c67

Browse files
Copilotjkotas
andcommitted
Remove PathFeatures.cs and all references
Co-authored-by: jkotas <[email protected]>
1 parent b9ca0a9 commit 42c6c67

File tree

11 files changed

+35
-202
lines changed

11 files changed

+35
-202
lines changed

src/libraries/Common/tests/System/IO/PathFeatures.cs

Lines changed: 0 additions & 98 deletions
This file was deleted.

src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace System.Diagnostics.Tests
1010
{
1111
public partial class ProcessModuleTests : ProcessTestBase
1212
{
13-
[ConditionalFact(typeof(PathFeatures), nameof(PathFeatures.AreAllLongPathsAvailable))]
13+
[Fact]
1414
public void LongModuleFileNamesAreSupported()
1515
{
1616
// To be able to test Long Path support for ProcessModule.FileName we need a .dll that has a path > 260 chars.

src/libraries/System.Diagnostics.Process/tests/System.Diagnostics.Process.Tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
Link="Common\Microsoft\Win32\TempRegistryKey.cs" />
2121
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.cs"
2222
Link="Common\System\Text\ValueStringBuilder.cs" />
23-
<Compile Include="$(CommonTestPath)System\IO\PathFeatures.cs"
24-
Link="Common\System\IO\PathFeatures.cs" />
2523
<Compile Include="DelegateSynchronizeInvoke.cs" />
2624
<Compile Include="FileAssociations.cs" />
2725
<Compile Include="Helpers.cs" />

src/libraries/System.IO.Compression/tests/System.IO.Compression.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<Compile Include="ZipArchive\zip_ReadTests.cs" />
3030
<Compile Include="ZipArchive\zip_UpdateTests.cs" />
3131
<Compile Include="ZipArchive\zip_UpdateTests.Comments.cs" />
32-
<Compile Include="$(CommonTestPath)System\IO\PathFeatures.cs" Link="Common\System\IO\PathFeatures.cs" />
3332
<Compile Include="$(CommonTestPath)System\IO\CallTrackingStream.cs" Link="Common\System\IO\CallTrackingStream.cs" />
3433
<Compile Include="$(CommonTestPath)System\IO\Compression\CRC.cs" Link="Common\System\IO\Compression\CRC.cs" />
3534
<Compile Include="$(CommonTestPath)System\IO\Compression\CompressionStreamTestBase.cs" Link="Common\System\IO\Compression\CompressionStreamTestBase.cs" />

src/libraries/System.IO.Compression/tests/ZipArchive/zip_ManualAndCompatibilityTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace System.IO.Compression.Tests
1010
{
1111
public class zip_ManualAndCompatibilityTests : ZipFileTestBase
1212
{
13-
public static bool IsUsingNewPathNormalization => !PathFeatures.IsUsingLegacyPathNormalization();
13+
public static bool IsUsingNewPathNormalization => true;
1414

1515
public static IEnumerable<object[]> Get_CompatibilityTests_Data()
1616
{

src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/DisabledFileLockingTests/System.IO.FileSystem.DisabledFileLocking.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<Compile Include="..\PortedCommon\IOServices.cs" />
2424
<Compile Include="$(CommonPath)DisableRuntimeMarshalling.cs"
2525
Link="Common\DisableRuntimeMarshalling.cs" />
26-
<Compile Include="$(CommonTestPath)System\IO\PathFeatures.cs" Link="Common\System\IO\PathFeatures.cs" />
2726
<Compile Include="$(CommonTestPath)Tests\TheoryDataExtensions.cs" Link="Common\Tests\TheoryDataExtensions.cs" />
2827
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelization.cs" Link="Common\TestUtilities\System\DisableParallelization.cs" />
2928
</ItemGroup>

src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/FileSystemTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ public abstract partial class FileSystemTest : FileCleanupTestBase
1111
{
1212
public static readonly byte[] TestBuffer = { 0xBA, 0x5E, 0xBA, 0x11, 0xF0, 0x07, 0xBA, 0x11 };
1313

14-
public static bool AreAllLongPathsAvailable => PathFeatures.AreAllLongPathsAvailable();
14+
public static bool AreAllLongPathsAvailable => true;
1515

16-
public static bool LongPathsAreNotBlocked => !PathFeatures.AreLongPathsBlocked();
16+
public static bool LongPathsAreNotBlocked => true;
1717

18-
public static bool UsingNewNormalization => !PathFeatures.IsUsingLegacyPathNormalization();
18+
public static bool UsingNewNormalization => true;
1919

2020
public static bool ReservedDeviceNamesAreBlocked => PlatformDetection.IsWindows && !PlatformDetection.IsWindows10OrLater;
2121

src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/System.IO.FileSystem.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@
240240
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GenericOperations.cs" Link="Interop\Windows\Interop.GenericOperations.cs" />
241241
<Compile Include="$(CommonTestPath)System\Buffers\NativeMemoryManager.cs" Link="Common\System\Buffers\NativeMemoryManager.cs" />
242242
<Compile Include="$(CommonTestPath)System\IO\TempFile.cs" Link="Common\System\IO\TempFile.cs" />
243-
<Compile Include="$(CommonTestPath)System\IO\PathFeatures.cs" Link="Common\System\IO\PathFeatures.cs" />
244243
<Content Include="DirectoryInfo\test-dir\dummy.txt" Link="test-dir\dummy.txt" />
245244
<Compile Include="$(CommonPath)System\IO\PathInternal.CaseSensitivity.cs" Link="Common\System\IO\PathInternal.CaseSensitivity.cs" />
246245
<Compile Include="$(CommonTestPath)System\IO\ReparsePointUtilities.cs" Link="Common\System\IO\ReparsePointUtilities.cs" />

src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System.Runtime.Extensions.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" />
8888
<Compile Include="$(CommonTestPath)System\Diagnostics\DebuggerAttributes.cs" Link="Common\System\Diagnostics\DebuggerAttributes.cs" />
8989
<Compile Include="$(CommonTestPath)System\GenericMathTestMemberData.cs" Link="Common\System\GenericMathTestMemberData.cs" />
90-
<Compile Include="$(CommonTestPath)System\IO\PathFeatures.cs" Link="Common\System\IO\PathFeatures.cs" />
9190
<Compile Include="$(CommonTestPath)System\ShouldNotBeInvokedException.cs" Link="Common\System\ShouldNotBeInvokedException.cs" />
9291
<Compile Include="$(CommonTestPath)System\Security\Cryptography\ByteUtils.cs" Link="Common\System\Security\Cryptography\ByteUtils.cs" />
9392
</ItemGroup>

src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/IO/PathTestsBase.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ public class PathTestsBase
187187
// TODO: Include \\.\ as well
188188
public static TheoryData<string, string> TestData_GetPathRoot_DevicePaths => new TheoryData<string, string>
189189
{
190-
{ @"\\?\UNC\test\unc\path\to\something", PathFeatures.IsUsingLegacyPathNormalization() ? @"\\?\UNC" : @"\\?\UNC\test\unc" },
191-
{ @"\\?\UNC\test\unc", PathFeatures.IsUsingLegacyPathNormalization() ? @"\\?\UNC" : @"\\?\UNC\test\unc" },
192-
{ @"\\?\UNC\a\b1", PathFeatures.IsUsingLegacyPathNormalization() ? @"\\?\UNC" : @"\\?\UNC\a\b1" },
193-
{ @"\\?\UNC\a\b2\", PathFeatures.IsUsingLegacyPathNormalization() ? @"\\?\UNC" : @"\\?\UNC\a\b2" },
194-
{ @"\\?\C:\foo\bar.txt", PathFeatures.IsUsingLegacyPathNormalization() ? @"\\?\C:" : @"\\?\C:\" }
190+
{ @"\\?\UNC\test\unc\path\to\something", @"\\?\UNC\test\unc" },
191+
{ @"\\?\UNC\test\unc", @"\\?\UNC\test\unc" },
192+
{ @"\\?\UNC\a\b1", @"\\?\UNC\a\b1" },
193+
{ @"\\?\UNC\a\b2\", @"\\?\UNC\a\b2" },
194+
{ @"\\?\C:\foo\bar.txt", @"\\?\C:\" }
195195
};
196196

197197
public static TheoryData<string, string> TestData_GetPathRoot_Windows => new TheoryData<string, string>

0 commit comments

Comments
 (0)