File tree 3 files changed +6
-4
lines changed
src/libraries/System.Formats.Tar/tests
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ namespace System.Formats.Tar.Tests
9
9
{
10
10
public partial class TarReader_TarEntry_ExtractToFile_Tests : TarTestsBase
11
11
{
12
- [ PlatformSpecific ( TestPlatforms . AnyUnix & ~ TestPlatforms . tvOS & ~ TestPlatforms . LinuxBionic ) ] // https://github.com/dotnet/runtime/issues/68360
13
- [ ConditionalFact ( nameof ( IsUnixButNotSuperUser ) ) ]
12
+ [ PlatformSpecific ( TestPlatforms . AnyUnix & ~ TestPlatforms . tvOS ) ] // https://github.com/dotnet/runtime/issues/68360
13
+ [ ConditionalFact ( nameof ( IsUnixButNotSuperUser ) , nameof ( IsNotLinuxBionic ) ) ]
14
14
public void SpecialFile_Unelevated_Throws ( )
15
15
{
16
16
using TempDirectory root = new TempDirectory ( ) ;
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ namespace System.Formats.Tar.Tests
9
9
{
10
10
public partial class TarReader_TarEntry_ExtractToFileAsync_Tests : TarTestsBase
11
11
{
12
- [ PlatformSpecific ( TestPlatforms . AnyUnix & ~ TestPlatforms . tvOS & ~ TestPlatforms . LinuxBionic ) ] // https://github.com/dotnet/runtime/issues/68360
13
- [ ConditionalFact ( nameof ( IsUnixButNotSuperUser ) ) ]
12
+ [ PlatformSpecific ( TestPlatforms . AnyUnix & ~ TestPlatforms . tvOS ) ] // https://github.com/dotnet/runtime/issues/68360
13
+ [ ConditionalFact ( nameof ( IsUnixButNotSuperUser ) , nameof ( IsNotLinuxBionic ) ) ]
14
14
public async Task SpecialFile_Unelevated_Throws_Async ( )
15
15
{
16
16
using ( TempDirectory root = new TempDirectory ( ) )
Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ public enum TestTarFormat
103
103
104
104
protected static bool IsUnixButNotSuperUser => ! PlatformDetection . IsWindows && ! PlatformDetection . IsSuperUser ;
105
105
106
+ protected static bool IsNotLinuxBionic => ! PlatformDetection . IsLinuxBionic ;
107
+
106
108
protected static string GetTestCaseUnarchivedFolderPath ( string testCaseName ) =>
107
109
Path . Join ( Directory . GetCurrentDirectory ( ) , "unarchived" , testCaseName ) ;
108
110
You can’t perform that action at this time.
0 commit comments