Skip to content

Commit e42c683

Browse files
authored
[tests] Disables tests on Apple mobile platforms (#95757)
* [tests] Use shorter path for temp directory on Apple mobile platforms * [tests] Test shorter temporary directory path * [tests] Disable tests on Apple mobile platforms * [tests] Fix lint
1 parent 6a94e2a commit e42c683

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/libraries/System.Formats.Tar/tests/TarFile/TarFile.ExtractToDirectory.Stream.Tests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ public void UnseekableStreams_RoundTrip(TestTarFormat testFormat)
268268

269269
[Theory]
270270
[MemberData(nameof(GetExactRootDirMatchCases))]
271-
[ActiveIssue("https://github.com/dotnet/runtime/issues/88049", TestPlatforms.iOS | TestPlatforms.tvOS)]
271+
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "The temporary directory on Apple mobile platforms exceeds the path length limit.")]
272272
public void ExtractToDirectory_ExactRootDirMatch_RegularFile_And_Directory_Throws(TarEntryFormat format, TarEntryType entryType, string fileName)
273273
{
274274
ExtractToDirectory_ExactRootDirMatch_RegularFile_And_Directory_Throws_Internal(format, entryType, fileName, inverted: false);
275275
ExtractToDirectory_ExactRootDirMatch_RegularFile_And_Directory_Throws_Internal(format, entryType, fileName, inverted: true);
276276
}
277277

278278
[Fact]
279-
[ActiveIssue("https://github.com/dotnet/runtime/issues/88049", TestPlatforms.iOS | TestPlatforms.tvOS)]
279+
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "The temporary directory on Apple mobile platforms exceeds the path length limit.")]
280280
public void ExtractToDirectory_ExactRootDirMatch_Directory_Relative_Throws()
281281
{
282282
string entryFolderName = "folder";
@@ -303,7 +303,7 @@ public void ExtractToDirectory_ExactRootDirMatch_Directory_Relative_Throws()
303303
[InlineData(TarEntryFormat.Ustar)]
304304
[InlineData(TarEntryFormat.Pax)]
305305
[InlineData(TarEntryFormat.Gnu)]
306-
[ActiveIssue("https://github.com/dotnet/runtime/issues/88049", TestPlatforms.iOS | TestPlatforms.tvOS)]
306+
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "The temporary directory on Apple mobile platforms exceeds the path length limit.")]
307307
public void ExtractToDirectory_ExactRootDirMatch_HardLinks_Throws(TarEntryFormat format)
308308
{
309309
ExtractToDirectory_ExactRootDirMatch_Links_Throws(format, TarEntryType.HardLink, inverted: false);

src/libraries/System.Formats.Tar/tests/TarFile/TarFile.ExtractToDirectoryAsync.Stream.Tests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,15 +333,15 @@ public async Task UnseekableStreams_RoundTrip_Async(TestTarFormat testFormat)
333333

334334
[Theory]
335335
[MemberData(nameof(GetExactRootDirMatchCases))]
336-
[ActiveIssue("https://github.com/dotnet/runtime/issues/88049", TestPlatforms.iOS | TestPlatforms.tvOS)]
336+
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "The temporary directory on Apple mobile platforms exceeds the path length limit.")]
337337
public async Task ExtractToDirectory_ExactRootDirMatch_RegularFile_And_Directory_Throws_Async(TarEntryFormat format, TarEntryType entryType, string fileName)
338338
{
339339
await ExtractToDirectory_ExactRootDirMatch_RegularFile_And_Directory_Throws_Internal_Async(format, entryType, fileName, inverted: false);
340340
await ExtractToDirectory_ExactRootDirMatch_RegularFile_And_Directory_Throws_Internal_Async(format, entryType, fileName, inverted: true);
341341
}
342342

343343
[Fact]
344-
[ActiveIssue("https://github.com/dotnet/runtime/issues/88049", TestPlatforms.iOS | TestPlatforms.tvOS)]
344+
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "The temporary directory on Apple mobile platforms exceeds the path length limit.")]
345345
public async Task ExtractToDirectory_ExactRootDirMatch_Directory_Relative_Throws_Async()
346346
{
347347
string entryFolderName = "folder";
@@ -368,7 +368,7 @@ public async Task ExtractToDirectory_ExactRootDirMatch_Directory_Relative_Throws
368368
[InlineData(TarEntryFormat.Ustar)]
369369
[InlineData(TarEntryFormat.Pax)]
370370
[InlineData(TarEntryFormat.Gnu)]
371-
[ActiveIssue("https://github.com/dotnet/runtime/issues/88049", TestPlatforms.iOS | TestPlatforms.tvOS)]
371+
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "The temporary directory on Apple mobile platforms exceeds the path length limit.")]
372372
public async Task ExtractToDirectory_ExactRootDirMatch_HardLinks_Throws_Async(TarEntryFormat format)
373373
{
374374
await ExtractToDirectory_ExactRootDirMatch_Links_Throws_Async(format, TarEntryType.HardLink, inverted: false);

0 commit comments

Comments
 (0)