Skip to content

Commit 1958812

Browse files
authored
Disabled remaining Tar tests that are failing. (#72355)
1 parent 4cbe6f9 commit 1958812

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFile.Tests.Unix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace System.Formats.Tar.Tests
99
{
1010
public partial class TarReader_TarEntry_ExtractToFile_Tests : TarTestsBase
1111
{
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))]
1414
public void SpecialFile_Unelevated_Throws()
1515
{
1616
using TempDirectory root = new TempDirectory();

src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFileAsync.Tests.Unix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace System.Formats.Tar.Tests
99
{
1010
public partial class TarReader_TarEntry_ExtractToFileAsync_Tests : TarTestsBase
1111
{
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))]
1414
public async Task SpecialFile_Unelevated_Throws_Async()
1515
{
1616
using (TempDirectory root = new TempDirectory())

src/libraries/System.Formats.Tar/tests/TarTestsBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public enum TestTarFormat
103103

104104
protected static bool IsUnixButNotSuperUser => !PlatformDetection.IsWindows && !PlatformDetection.IsSuperUser;
105105

106+
protected static bool IsNotLinuxBionic => !PlatformDetection.IsLinuxBionic;
107+
106108
protected static string GetTestCaseUnarchivedFolderPath(string testCaseName) =>
107109
Path.Join(Directory.GetCurrentDirectory(), "unarchived", testCaseName);
108110

0 commit comments

Comments
 (0)