From af145aa74881cbb58ff202ca2c781d260fd7410c Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 28 Apr 2021 16:59:01 -0400 Subject: [PATCH 01/78] [iOS][tvOS][libraries] Add Microsoft.Extensions.Hosting.Unit.Tests class skip, PNSE skip, and ActiveIssue 52114 --- .../tests/UnitTests/Internal/HostTests.cs | 1 + .../tests/UnitTests/OptionsBuilderExtensionsTests.cs | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs index dd8e96507f3bba..90ea3ddea8aaef 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs @@ -19,6 +19,7 @@ namespace Microsoft.Extensions.Hosting.Internal { + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public class HostTests { [Fact] diff --git a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs index ddcce5ce2c47b4..2dc9b1ba2f01bb 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs @@ -26,6 +26,7 @@ public void ValidateOnStart_NullOptionsBuilder_Throws() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ValidateOnStart_ConfigureAndValidateThenCallValidateOnStart_ValidatesFailure() { var hostBuilder = CreateHostBuilder(services => @@ -49,6 +50,7 @@ public async Task ValidateOnStart_ConfigureAndValidateThenCallValidateOnStart_Va [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ValidateOnStart_CallFirstThenConfigureAndValidate_ValidatesFailure() { var hostBuilder = CreateHostBuilder(services => @@ -72,6 +74,7 @@ public async Task ValidateOnStart_CallFirstThenConfigureAndValidate_ValidatesFai [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ValidateOnStart_ErrorMessageSpecified_FailsWithCustomError() { var hostBuilder = CreateHostBuilder(services => @@ -102,6 +105,7 @@ internal class FakeSettings [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ValidateOnStart_NamedOptions_ValidatesFailureOnStart() { var hostBuilder = CreateHostBuilder(services => @@ -130,6 +134,7 @@ public async Task ValidateOnStart_NamedOptions_ValidatesFailureOnStart() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] private async Task ValidateOnStart_AddOptionsMultipleTimesForSameType_LastOneGetsTriggered() { bool firstOptionsBuilderTriggered = false; @@ -176,6 +181,7 @@ private async Task ValidateOnStart_AddOptionsMultipleTimesForSameType_LastOneGet [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] private async Task ValidateOnStart_AddEagerValidation_DoesValidationWhenHostStartsWithNoFailure() { bool validateCalled = false; @@ -203,6 +209,7 @@ private async Task ValidateOnStart_AddEagerValidation_DoesValidationWhenHostStar [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] private async Task ValidateOnStart_AddLazyValidation_SkipsValidationWhenHostStarts() { bool validateCalled = false; @@ -236,6 +243,7 @@ private async Task ValidateOnStart_AddLazyValidation_SkipsValidationWhenHostStar [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ValidateOnStart_AddBothLazyAndEagerValidationOnDifferentTypes_ValidatesWhenHostStartsOnlyForEagerValidations() { bool validateCalledForNested = false; @@ -279,6 +287,7 @@ public async Task ValidateOnStart_AddBothLazyAndEagerValidationOnDifferentTypes_ [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ValidateOnStart_MultipleErrorsInOneValidationCall_ValidatesFailureWithMultipleErrors() { var hostBuilder = CreateHostBuilder(services => @@ -307,6 +316,7 @@ public async Task ValidateOnStart_MultipleErrorsInOneValidationCall_ValidatesFai [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ValidateOnStart_MultipleErrorsInOneValidationCallUsingCustomErrors_FailuresContainCustomErrors() { var hostBuilder = CreateHostBuilder(services => From 40e7e0932822683af08a8bd7cd753e1abb15def9 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 12:30:17 -0400 Subject: [PATCH 02/78] [iOS][tvOS][libraries] Add Microsoft.Extensions.Logging.Console.Tests ActiveIssue 51398 --- .../SimpleConsoleFormatterTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs b/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs index cef2eafb73014e..f9694e07e6f598 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs @@ -14,6 +14,7 @@ public class SimpleConsoleFormatterTests : ConsoleFormatterTests [InlineData(LoggerColorBehavior.Enabled)] [InlineData(LoggerColorBehavior.Disabled)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50575", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51398", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorBehavior colorBehavior) { // Arrange From 4d73eefd5c4719c7e4bd4360304c074039ee237b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 12:12:42 -0400 Subject: [PATCH 03/78] [iOS][tvOS][libraries] Add Microsoft.VisualBasic.Core.Tests ActiveIssue 51392 --- .../Microsoft.VisualBasic.Core/tests/InteractionTests.cs | 1 + .../tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs b/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs index 285740ece2ffdf..289a9c0c67249e 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs +++ b/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs @@ -104,6 +104,7 @@ public void Choose() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50572", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Command() { var expected = Environment.CommandLine; diff --git a/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs b/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs index 91a74b165e1488..df7360b84b9d24 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs +++ b/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs @@ -180,6 +180,7 @@ public void CopyFile_FileSourceFileName_DestinationFileName() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void CopyFile_FileSourceFileName_DestinationFileName_OverwriteFalse() { var testFileSource = GetTestFilePath(); @@ -734,6 +735,7 @@ public void MoveFile_SourceFileName_DestinationFileName() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void MoveFile_SourceFileName_DestinationFileName_OverwriteFalse() { var SourceFileNameWithPath = CreateTestFile(SourceData, TestFileName: GetTestFileName()); From ef1b757da36e746308b14d0cc721b20a71188b58 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 13 Apr 2021 15:02:33 -0400 Subject: [PATCH 04/78] [iOS][tvOS][libraries] Add System.Collections.Immutable.Tests ActiveIssue 36876 --- .../System.Collections.Immutable/tests/ImmutableArrayTest.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs b/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs index 490373ed9ba953..d587923bde9127 100644 --- a/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs +++ b/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs @@ -1985,6 +1985,7 @@ public void IStructuralEquatableEqualsNullComparerInvalid() [Theory] [MemberData(nameof(IStructuralEquatableGetHashCodeData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50579", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36876", TestPlatforms.iOS | TestPlatforms.tvOS)] public void IStructuralEquatableGetHashCode(IEnumerable source, IEqualityComparer comparer) { var array = source.ToImmutableArray(); From 2aa718e71806062415e7303254a2896fb14d0fb9 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 14 Apr 2021 11:33:49 -0400 Subject: [PATCH 05/78] [iOS][tvOS][libraries] Add System.Console.Tests PNSE ActiveIssues 36878 --- src/libraries/System.Console/tests/TermInfo.cs | 4 ++++ src/libraries/tests.proj | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/libraries/System.Console/tests/TermInfo.cs b/src/libraries/System.Console/tests/TermInfo.cs index bffe8ff382d7fb..6cc0435426dfb1 100644 --- a/src/libraries/System.Console/tests/TermInfo.cs +++ b/src/libraries/System.Console/tests/TermInfo.cs @@ -27,6 +27,7 @@ public class TermInfo [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests TermInfo + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] public void VerifyInstalledTermInfosParse() { bool foundAtLeastOne = false; @@ -61,6 +62,7 @@ public void VerifyInstalledTermInfosParse() [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests TermInfo + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] public void VerifyTermInfoSupportsNewAndLegacyNcurses() { MethodInfo readDbMethod = typeof(Console).GetTypeInfo().Assembly.GetType(TerminfoDatabaseType).GetTypeInfo().GetDeclaredMethods(ReadDatabaseMethod).Where(m => m.GetParameters().Count() == 2).Single(); @@ -85,6 +87,7 @@ public void VerifyTermInfoSupportsNewAndLegacyNcurses() [InlineData("mach-color", "\u001B\u005B\u00330m", "\u001B\u005B\u00340m", 0)] [InlineData("mach-color", "\u001B\u005B\u00335m", "\u001B\u005B\u00345m", 5)] [InlineData("mach-color", "\u001B\u005B\u003312m", "\u001B\u005B\u003412m", 12)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TermInfoVerification(string termToTest, string expectedForeground, string expectedBackground, int colorValue) { object db = ReadTermInfoDatabase(termToTest); @@ -108,6 +111,7 @@ public void EmuTermInfoDoesntBreakParser() [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests TermInfo + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TryingToLoadTermThatDoesNotExistDoesNotThrow() { const string NonexistentTerm = "foobar____"; diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 3b69f941797b0a..7b4bb98a4e9d12 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -212,6 +212,9 @@ + + + From 21e9d29d95b833e2cd5cd01106bca6dd7c782801 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 14 Apr 2021 11:34:35 -0400 Subject: [PATCH 06/78] [iOS][tvOS][libraries] Add System.Data.Common.Tests ActiveIssues 36879 --- .../System/Data/Common/DbProviderFactoriesTests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs b/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs index b758b3967c62ee..f8eb6c3f564c83 100644 --- a/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs +++ b/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs @@ -38,6 +38,7 @@ public void GetFactoryNoRegistrationTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetFactoryWithInvariantNameTest() { ClearRegisteredFactories(); @@ -49,6 +50,7 @@ public void GetFactoryWithInvariantNameTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetFactoryWithDbConnectionTest() { ClearRegisteredFactories(); @@ -60,6 +62,7 @@ public void GetFactoryWithDbConnectionTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetFactoryWithDataRowTest() { ClearRegisteredFactories(); @@ -67,6 +70,7 @@ public void GetFactoryWithDataRowTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RegisterFactoryWithTypeNameTest() { ClearRegisteredFactories(); @@ -74,6 +78,7 @@ public void RegisterFactoryWithTypeNameTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RegisterFactoryWithTypeTest() { ClearRegisteredFactories(); @@ -81,6 +86,7 @@ public void RegisterFactoryWithTypeTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RegisterFactoryWithInstanceTest() { ClearRegisteredFactories(); @@ -96,6 +102,7 @@ public void RegisterFactoryWithWrongTypeTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RegisterFactoryWithBadInvariantNameTest() { ClearRegisteredFactories(); @@ -104,6 +111,7 @@ public void RegisterFactoryWithBadInvariantNameTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RegisterFactoryWithAssemblyQualifiedNameTest() { ClearRegisteredFactories(); @@ -127,6 +135,7 @@ public void RegisterFactoryWithWrongAssemblyQualifiedNameTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void UnregisterFactoryTest() { ClearRegisteredFactories(); @@ -137,6 +146,7 @@ public void UnregisterFactoryTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TryGetFactoryTest() { ClearRegisteredFactories(); @@ -149,6 +159,7 @@ public void TryGetFactoryTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ReplaceFactoryWithRegisterFactoryWithTypeTest() { ClearRegisteredFactories(); @@ -163,6 +174,7 @@ public void ReplaceFactoryWithRegisterFactoryWithTypeTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetProviderInvariantNamesTest() { ClearRegisteredFactories(); From 024640480493530b0a5592b9bcdd9f4290a292d2 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 14 Apr 2021 13:38:21 -0400 Subject: [PATCH 07/78] [iOS][tvOS][libraries] Add System.Diagnostics.Debug.Tests ActiveIssues 36882 --- .../System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs | 2 ++ .../System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs index edc3265e22bb05..126c54d4b4eb98 100644 --- a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs +++ b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs @@ -68,6 +68,7 @@ public void Debug_WriteNull_SkipsIndentation() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Debug_WriteLineNull_IndentsEmptyStringProperly() { Debug.Indent(); @@ -210,6 +211,7 @@ public void IndentSize_Set_GetReturnsExpected(int indentSize, int expectedIndent [InlineData(0, 0)] [InlineData(1, 1)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] public void IndentLevel_Set_GetReturnsExpected(int indentLevel, int expectedIndentLevel) { Debug.IndentLevel = indentLevel; diff --git a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs index a7a7f5eb3185a9..b4417a5cec5c2b 100644 --- a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs +++ b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs @@ -197,6 +197,7 @@ public void Trace_Refresh_ResetsIndentSize() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Trace_ClearTraceListeners_StopsWritingToDebugger() { VerifyLogged(() => Debug.Write("pizza"), "pizza"); @@ -231,6 +232,7 @@ public void TraceWriteIf() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TraceWriteLineIf() { VerifyLogged(() => Trace.WriteLineIf(true, 5), "5" + Environment.NewLine); From 19f342ade58e8ccc3dd6b1b73095da19a78809f2 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 11:41:18 -0400 Subject: [PATCH 08/78] [iOS][tvOS][libraries] Add System.Diagnostics.Process.Tests ActiveIssue 51386 --- .../tests/ProcessStartInfoTests.cs | 2 ++ .../tests/ProcessTests.Unix.cs | 3 +++ .../System.Diagnostics.Process/tests/ProcessTests.cs | 9 +++++++++ 3 files changed, 14 insertions(+) diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs index d288f236496264..bf31931d111b74 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs @@ -31,6 +31,7 @@ private static bool IsAdmin_IsNotNano_RemoteExecutorIsSupported => PlatformDetection.IsWindowsAndElevated && PlatformDetection.IsNotWindowsNanoServer && RemoteExecutor.IsSupported; [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51384", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestEnvironmentProperty() { Assert.NotEqual(0, new Process().StartInfo.Environment.Count); @@ -773,6 +774,7 @@ public void Verbs_GetUnix_ReturnsEmpty() [PlatformSpecific(TestPlatforms.AnyUnix)] // Test case is specific to Unix [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestEnvironmentVariablesPropertyUnix() { ProcessStartInfo psi = new ProcessStartInfo(); diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs index dccedb7e01dc5d..2a18c3e7fa61de 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs @@ -158,6 +158,7 @@ public void ProcessStart_UseShellExecute_OnUnix_SuccessWhenProgramInstalled(bool [Fact] [SkipOnPlatform(TestPlatforms.OSX, "On OSX, ProcessName returns the script interpreter.")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ProcessNameMatchesScriptName() { string scriptName = GetTestFileName(); @@ -476,6 +477,7 @@ public void TestBasePriorityOnUnix() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestStartOnUnixWithBadPermissions() { string path = GetTestFilePath(); @@ -487,6 +489,7 @@ public void TestStartOnUnixWithBadPermissions() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestStartOnUnixWithBadFormat() { string path = GetTestFilePath(); diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs index 8ece605da6f1cc..f914404f479f5d 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs @@ -172,18 +172,21 @@ public void TestExited_SynchronizingObject(bool invokeRequired) } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ProcessStart_TryExitCommandAsFileName_ThrowsWin32Exception() { Assert.Throws(() => Process.Start(new ProcessStartInfo { UseShellExecute = false, FileName = "exit", Arguments = "42" })); } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ProcessStart_UseShellExecuteFalse_FilenameIsUrl_ThrowsWin32Exception() { Assert.Throws(() => Process.Start(new ProcessStartInfo { UseShellExecute = false, FileName = "https://www.github.com/corefx" })); } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ProcessStart_TryOpenFolder_UseShellExecuteIsFalse_ThrowsWin32Exception() { Assert.Throws(() => Process.Start(new ProcessStartInfo { UseShellExecute = false, FileName = Path.GetTempPath() })); @@ -273,6 +276,7 @@ public void ProcessStart_UseShellExecute_OnWindows_DoesNotThrow(bool isFolder) nameof(PlatformDetection.IsNotWindowsNanoServer), nameof(PlatformDetection.IsNotWindowsIoTCore))] [ActiveIssue("https://github.com/dotnet/runtime/issues/34685", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [InlineData(true), InlineData(false)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ProcessStart_UseShellExecute_Executes(bool filenameAsUrl) { string filename = WriteScriptFile(TestDirectory, GetTestFileName(), returnValue: 42); @@ -341,6 +345,7 @@ public void ProcessStart_UseShellExecute_ExecuteOrder() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsServerCore), nameof(PlatformDetection.IsNotWindowsNanoServer), nameof(PlatformDetection.IsNotWindowsIoTCore))] [ActiveIssue("https://github.com/dotnet/runtime/issues/34685", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ProcessStart_UseShellExecute_WorkingDirectory() { // Create a directory that will ProcessStartInfo.WorkingDirectory @@ -470,6 +475,7 @@ public void HasExited_GetNotStarted_ThrowsInvalidOperationException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Kill_NotStarted_ThrowsInvalidOperationException() { var process = new Process(); @@ -543,6 +549,7 @@ public void TestMaxWorkingSet() [Fact] [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "Getting MaxWorkingSet is not supported on OSX and BSD.")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void MaxWorkingSet_GetNotStarted_ThrowsInvalidOperationException() { var process = new Process(); @@ -598,6 +605,7 @@ public void TestMinWorkingSet() [Fact] [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "Getting MinWorkingSet is not supported on OSX and BSD.")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void MinWorkingSet_GetNotStarted_ThrowsInvalidOperationException() { var process = new Process(); @@ -1375,6 +1383,7 @@ public void CanBeFinalized() [Theory] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestStartWithMissingFile(bool fullPath) { string path = Guid.NewGuid().ToString("N"); From 9d880b6f3ea6343c7725f6ac11476e86568fc346 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 12:32:37 -0400 Subject: [PATCH 09/78] [iOS][tvOS][libraries] Add System.Diagnostics.StackTrace.Tests ActiveIssue 51399 --- .../tests/StackTraceSymbolsTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs index 47eb6f07b700fe..fc343a54e19387 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs @@ -10,6 +10,7 @@ namespace System.Diagnostics.SymbolStore.Tests public class StackTraceSymbolsTests { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51399", TestPlatforms.iOS | TestPlatforms.tvOS)] public void StackTraceSymbolsDoNotLockFile() { var asmPath = AssemblyPathHelper.GetAssemblyLocation(typeof(StackTraceSymbolsTests).Assembly); From 0818061cdcd1e8a5bf581a03a6ff699b61c92fa1 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 11:23:58 -0400 Subject: [PATCH 10/78] [iOS][tvOS][libraries] Add System.Diagnostics.Tracing.Tests ActiveIssue 51382 --- .../tests/BasicEventSourceTest/TestsManifestNegative.cs | 1 + .../tests/BasicEventSourceTest/TestsTraits.cs | 2 ++ .../tests/BasicEventSourceTest/TestsUserErrors.cs | 1 + .../tests/BasicEventSourceTest/TestsWrite.cs | 2 ++ .../BasicEventSourceTest/TestsWriteEventToListener.cs | 7 +++++++ 5 files changed, 13 insertions(+) diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs index 04b433395af4e0..8c4ba39aa8b444 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs @@ -59,6 +59,7 @@ private static string GetResourceStringFromReflection(string key) /// [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "https://github.com/dotnet/runtime/issues/21421")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_GenerateManifest_InvalidEventSources() { TestUtilities.CheckNoEventSourcesRunning("Start"); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs index 2b1a208ae8c0b6..1cd9fc8713de2c 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs @@ -29,6 +29,7 @@ public class TestsTraits /// Tests EventSource Traits. /// [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_EventSource_Traits_Contract() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -45,6 +46,7 @@ public void Test_EventSource_Traits_Contract() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_EventSource_Traits_Dynamic() { TestUtilities.CheckNoEventSourcesRunning("Start"); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs index 7748cd54ac08b0..61b16e0d493d8c 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs @@ -64,6 +64,7 @@ private void Test_BadTypes_Manifest(EventSource source) /// Test the /// [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // ActiveIssue: https://github.com/dotnet/runtime/issues/26197 + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_BadEventSource_MismatchedIds() { TestUtilities.CheckNoEventSourcesRunning("Start"); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs index c8abf5f8844e46..7a6971fa684eb2 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs @@ -37,6 +37,7 @@ private struct PartB_UserInfo /// [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21564", TargetFrameworkMonikers.NetFramework)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_Write_T_EventListener() { using (var listener = new EventListenerListener()) @@ -51,6 +52,7 @@ public void Test_Write_T_EventListener() /// [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21564", TargetFrameworkMonikers.NetFramework)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_Write_T_EventListener_UseEvents() { Test_Write_T(new EventListenerListener(true)); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs index 1488e00955a3b3..9093aeffe4e55f 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs @@ -18,6 +18,7 @@ public partial class TestsWriteEventToListener { [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21569", TargetFrameworkMonikers.NetFramework)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_WriteEvent_ArgsBasicTypes() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -172,6 +173,7 @@ public void Test_WriteEvent_ArgsBasicTypes() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21569", TargetFrameworkMonikers.NetFramework)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_WriteEvent_ArgsCornerCases() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -205,6 +207,7 @@ public void Test_WriteEvent_ArgsCornerCases() static partial void Test_WriteEvent_ArgsCornerCases_TestEtw(EventSourceTest log); [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_WriteEvent_InvalidCalls() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -227,6 +230,7 @@ public void Test_WriteEvent_InvalidCalls() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_WriteEvent_ToChannel_Coverage() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -241,6 +245,7 @@ public void Test_WriteEvent_ToChannel_Coverage() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21569", TargetFrameworkMonikers.NetFramework)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_WriteEvent_ZeroKwds() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -277,6 +282,7 @@ public void Test_WriteEvent_ZeroKwds() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_EventSourceCreatedEvents_BeforeListener() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -340,6 +346,7 @@ public void Test_EventSourceCreatedEvents_BeforeListener() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Test_EventSourceCreatedEvents_AfterListener() { TestUtilities.CheckNoEventSourcesRunning("Start"); From 9ec775f6e283206f1142219f02cf5adfbd7e2cc7 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 14 Apr 2021 15:30:02 -0400 Subject: [PATCH 11/78] [iOS][tvOS][libraries] Add System.IO.Compression.Brotli.Tests ActiveIssues 36884 --- .../IO/Compression/CompressionStreamUnitTestBase.cs | 10 ++++++++++ .../tests/BrotliGoogleTestData.cs | 2 ++ .../tests/CompressionStreamUnitTests.Brotli.cs | 3 +++ 3 files changed, 15 insertions(+) diff --git a/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs b/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs index 2935ef6fd3f829..101264d044f92d 100644 --- a/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs +++ b/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs @@ -48,6 +48,7 @@ public virtual void FlushAsync_DuringWriteAsync() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task FlushAsync_DuringReadAsync() { byte[] buffer = new byte[32]; @@ -76,6 +77,7 @@ public async Task FlushAsync_DuringReadAsync() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task FlushAsync_DuringFlushAsync() { byte[] buffer = null; @@ -118,6 +120,7 @@ public async Task FlushAsync_DuringFlushAsync() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Dispose_WithUnfinishedReadAsync() { string compressedPath = CompressedTestFile(UncompressedTestFile()); @@ -137,6 +140,7 @@ public virtual async Task Dispose_WithUnfinishedReadAsync() [Theory] [MemberData(nameof(UncompressedTestFiles))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Read(string testFile) { var uncompressedStream = await LocalMemoryStream.readAppFileAsync(testFile); @@ -173,6 +177,7 @@ public async Task Read(string testFile) [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Read_EndOfStreamPosition() { var compressedStream = await LocalMemoryStream.readAppFileAsync(CompressedTestFile(UncompressedTestFile())); @@ -193,6 +198,7 @@ public async Task Read_EndOfStreamPosition() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Read_BaseStreamSlowly() { string testFile = UncompressedTestFile(); @@ -328,6 +334,7 @@ IEnumerable> CtorFunctions() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task TestLeaveOpenAfterValidDecompress() { //Create the Stream @@ -403,6 +410,7 @@ public void BaseStreamTest(CompressionMode mode) [InlineData(CompressionMode.Compress)] [InlineData(CompressionMode.Decompress)] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task BaseStream_Modify(CompressionMode mode) { using (var baseStream = await LocalMemoryStream.readAppFileAsync(CompressedTestFile(UncompressedTestFile()))) @@ -435,6 +443,7 @@ public void BaseStream_NullAfterDisposeWithFalseLeaveOpen(CompressionMode mode) [InlineData(CompressionMode.Compress)] [InlineData(CompressionMode.Decompress)] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode mode) { var ms = await LocalMemoryStream.readAppFileAsync(CompressedTestFile(UncompressedTestFile())); @@ -453,6 +462,7 @@ public async Task BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode [Theory] [MemberData(nameof(UncompressedTestFiles))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task CompressionLevel_SizeInOrder(string testFile) { using var uncompressedStream = await LocalMemoryStream.readAppFileAsync(testFile); diff --git a/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs b/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs index dc86a757fc65a1..407581b39ef276 100644 --- a/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs +++ b/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs @@ -32,6 +32,7 @@ public static IEnumerable GoogleTestData() [Theory] [MemberData(nameof(GoogleTestData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DecompressFile(string fileName) { byte[] bytes = File.ReadAllBytes(CompressedTestFile(fileName)); @@ -42,6 +43,7 @@ public void DecompressFile(string fileName) [Theory] [MemberData(nameof(GoogleTestData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RoundtripCompressDecompressFile(string fileName) { byte[] bytes = File.ReadAllBytes(fileName); diff --git a/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs b/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs index 3960233e5eafa8..28bdce057fa986 100644 --- a/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs +++ b/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs @@ -58,6 +58,7 @@ public void GetMaxCompressedSize_Basic() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetMaxCompressedSize() { string uncompressedFile = UncompressedTestFile(); @@ -71,6 +72,7 @@ public void GetMaxCompressedSize() /// Test to ensure that when given an empty Destination span, the decoder will consume no input and write no output. /// [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Decompress_WithEmptyDestination() { string testFile = UncompressedTestFile(); @@ -114,6 +116,7 @@ public void Decompress_WithEmptySource() /// Test to ensure that when given an empty Destination span, the encoder consume no input and write no output /// [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Compress_WithEmptyDestination() { string testFile = UncompressedTestFile(); From 6e95dc4da1b074d305ba95bed1a34d82193fb757 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 10:37:33 -0400 Subject: [PATCH 12/78] [iOS][tvOS][libraries] Add System.IO.Compression.Tests test project skip --- src/libraries/tests.proj | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 7b4bb98a4e9d12..b34553ff484bcf 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -215,6 +215,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 520dee33e5aba8d25512fea65a32174f2d0c5555 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 10:54:19 -0400 Subject: [PATCH 13/78] [iOS][tvOS][libraries] Add System.IO.Compression.Tests ActiveIssue 51376 --- .../tests/TestWithConfigSwitches/ActivityTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs index 06cb5e3581f9ef..56d4d86112fed4 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs @@ -7,6 +7,7 @@ namespace System.Diagnostics.Tests { [ActiveIssue("https://github.com/dotnet/runtime/issues/37073", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51376", TestPlatforms.iOS | TestPlatforms.tvOS)] public class ActivityTests : IDisposable { [Fact] From b75b57b08e5c66177271a1a9b28d11039dc9de79 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 12:16:28 -0400 Subject: [PATCH 14/78] [iOS][tvOS][libraries] Add System.IO.FileSystem.Watcher.Tests ActiveIssue 51393 --- .../tests/FileSystemWatcher.Directory.Move.cs | 1 + .../tests/FileSystemWatcher.File.Move.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs index b40fac4e7602f5..3e4201be4dff91 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs @@ -43,6 +43,7 @@ public void Directory_Move_Multiple_From_Watched_To_Unwatched_Mac(int filesCount [InlineData(1)] [InlineData(2)] [InlineData(3)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51393", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Directory_Move_Multiple_From_Watched_To_Unwatched(int filesCount) { DirectoryMove_Multiple_FromWatchedToUnwatched(filesCount, skipOldEvents: false); diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs index 05ba2620929768..a02c773719593d 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs @@ -47,6 +47,7 @@ public void File_Move_Multiple_From_Watched_To_Unwatched_Mac(int filesCount) [InlineData(1)] [InlineData(2)] [InlineData(3)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51393", TestPlatforms.iOS | TestPlatforms.tvOS)] public void File_Move_Multiple_From_Watched_To_Unwatched(int filesCount) { FileMove_Multiple_FromWatchedToUnwatched(filesCount, skipOldEvents: false); From 33557239dae534cea285dfbdeed92b7ec3c6b8ba Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 10:45:52 -0400 Subject: [PATCH 15/78] [iOS][tvOS][libraries] Add System.IO.MemoryMappedFiles.Tests ActiveIssue 51375 --- .../tests/MemoryMappedFile.CreateFromFile.Tests.cs | 4 ++++ .../tests/MemoryMappedFile.CreateNew.Tests.cs | 1 + .../tests/MemoryMappedViewAccessor.Tests.cs | 1 + .../tests/MemoryMappedViewStream.Tests.cs | 1 + 4 files changed, 7 insertions(+) diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs index 1df45e91bf5522..aa10d381cf73e0 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs @@ -293,6 +293,7 @@ public void InvalidArguments_Inheritability(HandleInheritability inheritability) new string[] { null, "CreateUniqueMapName()" }, new long[] { 1, 256, -1 /*pagesize*/, 10000 }, new MemoryMappedFileAccess[] { MemoryMappedFileAccess.ReadWrite })] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ValidArgumentCombinationsWithPath_ModesOpenOrCreate( FileMode mode, string mapName, long capacity, MemoryMappedFileAccess access) { @@ -343,6 +344,7 @@ public void ValidArgumentCombinationsWithPath_ModesOpenOrCreate( new string[] { null, "CreateUniqueMapName()" }, new long[] { 1, 256, -1 /*pagesize*/, 10000 }, new MemoryMappedFileAccess[] { MemoryMappedFileAccess.Read, MemoryMappedFileAccess.ReadWrite, MemoryMappedFileAccess.CopyOnWrite })] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ValidArgumentCombinationsWithPath_ModeCreateNew( FileMode mode, string mapName, long capacity, MemoryMappedFileAccess access) { @@ -367,6 +369,7 @@ public void ValidArgumentCombinationsWithPath_ModeCreateNew( [MemberData(nameof(MemberData_ValidNameCapacityCombinationsWithPath), new string[] { null, "CreateUniqueMapName()" }, new long[] { 1, 256, -1 /*pagesize*/, 10000 })] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ValidArgumentCombinationsWithPath_ModeCreate(string mapName, long capacity) { using (TempFile file = new TempFile(GetTestFilePath(), capacity)) @@ -453,6 +456,7 @@ public static IEnumerable MemberData_ValidNameCapacityCombinationsWith new MemoryMappedFileAccess[] { MemoryMappedFileAccess.Read, MemoryMappedFileAccess.ReadWrite, MemoryMappedFileAccess.CopyOnWrite }, new HandleInheritability[] { HandleInheritability.None, HandleInheritability.Inheritable }, new bool[] { false, true })] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ValidArgumentCombinationsWithStream( string mapName, long capacity, MemoryMappedFileAccess access, HandleInheritability inheritability, bool leaveOpen) { diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs index 0d771fc85dab5d..8b0b9178e028d7 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs @@ -188,6 +188,7 @@ public void ReusingNames_Windows(string name) new MemoryMappedFileAccess[] { MemoryMappedFileAccess.Read, MemoryMappedFileAccess.ReadExecute, MemoryMappedFileAccess.ReadWrite, MemoryMappedFileAccess.ReadWriteExecute, MemoryMappedFileAccess.CopyOnWrite }, new MemoryMappedFileOptions[] { MemoryMappedFileOptions.None, MemoryMappedFileOptions.DelayAllocatePages }, new HandleInheritability[] { HandleInheritability.None, HandleInheritability.Inheritable })] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ValidArgumentCombinations( string mapName, long capacity, MemoryMappedFileAccess access, MemoryMappedFileOptions options, HandleInheritability inheritability) { diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs index 3193942d2fafd8..8adb9e4105e898 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs @@ -18,6 +18,7 @@ public class MemoryMappedViewAccessorTests : MemoryMappedFilesTestBase /// Test to validate the offset, size, and access parameters to MemoryMappedFile.CreateViewAccessor. /// [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] public void InvalidArguments() { int mapLength = s_pageSize.Value; diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs index b1b4b1a610ee5a..0f406c99bb6d2f 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs @@ -18,6 +18,7 @@ public class MemoryMappedViewStreamTests : MemoryMappedFilesTestBase /// Test to validate the offset, size, and access parameters to MemoryMappedFile.CreateViewAccessor. /// [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] public void InvalidArguments() { int mapLength = s_pageSize.Value; From 0f72ebc6bc90af01e54951d55bfe2264248f2dc3 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 11:54:07 -0400 Subject: [PATCH 16/78] [iOS][tvOS][libraries] Add System.IO.Tests ActiveIssue 51390 --- src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs b/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs index 4e4bb14d233e4a..08a1a0e5c2c19a 100644 --- a/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs +++ b/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs @@ -513,6 +513,7 @@ public async Task ReadBlockAsync_RepeatsReadsUntilReadDesiredAmount() [InlineData(1, false)] [InlineData(1, true)] [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51390", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ReadAsync_Canceled_ThrowsException(int method, bool precanceled) { Func> func = method switch From e9e55eb1d5bec7f82367ae73573086cf3fcafbd7 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 10:58:44 -0400 Subject: [PATCH 17/78] [iOS][tvOS][libraries] Add System.Net.NameResolution.Functional.Tests ActiveIssue 51377 --- .../tests/FunctionalTests/GetHostByNameTest.cs | 2 ++ .../tests/FunctionalTests/GetHostEntryTest.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs index 12b95e5cd95aa0..36b2081a012093 100644 --- a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs +++ b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs @@ -103,6 +103,7 @@ public void DnsObsoleteGetHostByName_IPv6String_ReturnsOnlyGivenIP() [ActiveIssue("https://github.com/dotnet/runtime/issues/1488", TestPlatforms.OSX)] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DnsObsoleteGetHostByName_EmptyString_ReturnsHostName() { IPHostEntry entry = Dns.GetHostByName(""); @@ -113,6 +114,7 @@ public void DnsObsoleteGetHostByName_EmptyString_ReturnsHostName() [ActiveIssue("https://github.com/dotnet/runtime/issues/1488", TestPlatforms.OSX)] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process), nameof(PlatformDetection.IsThreadingSupported))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName() { IPHostEntry entry = Dns.EndGetHostByName(Dns.BeginGetHostByName("", null, null)); diff --git a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs index 3c4dd19ea81b4b..d7a36948752ec1 100644 --- a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs +++ b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs @@ -25,6 +25,7 @@ public async Task Dns_GetHostEntryAsync_IPAddress_Ok() [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] [InlineData("")] [InlineData(TestSettings.LocalHost)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Dns_GetHostEntry_HostString_Ok(string hostName) { try @@ -74,6 +75,7 @@ public async Task Dns_GetHostEntry_HostString_Ok(string hostName) [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] [InlineData("")] [InlineData(TestSettings.LocalHost)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Dns_GetHostEntryAsync_HostString_Ok(string hostName) => await TestGetHostEntryAsync(() => Dns.GetHostEntryAsync(hostName)); From 4a798e9df91a8c1095648e9b19dd3bb811750a1f Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 14 Apr 2021 16:59:34 -0400 Subject: [PATCH 18/78] [iOS][tvOS][libraries] Add System.Net.NetworkInformation.Functional.Tests ActiveIssues 36890 --- .../tests/FunctionalTests/IPGlobalPropertiesTest.cs | 3 +++ .../tests/FunctionalTests/NetworkInterfaceBasicTest.cs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs index 260f202907ab3d..65860caceb734e 100644 --- a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs +++ b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs @@ -26,6 +26,7 @@ public IPGlobalPropertiesTest(ITestOutputHelper output) } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] public void IPGlobalProperties_AccessAllMethods_NoErrors() { IPGlobalProperties gp = IPGlobalProperties.GetIPGlobalProperties(); @@ -51,6 +52,7 @@ public void IPGlobalProperties_AccessAllMethods_NoErrors() [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] [MemberData(nameof(Loopbacks))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] public void IPGlobalProperties_TcpListeners_Succeed(IPAddress address) { using (var server = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp)) @@ -76,6 +78,7 @@ public void IPGlobalProperties_TcpListeners_Succeed(IPAddress address) [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] [ActiveIssue("https://github.com/dotnet/runtime/issues/34690", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] [MemberData(nameof(Loopbacks))] public async Task IPGlobalProperties_TcpActiveConnections_Succeed(IPAddress address) { diff --git a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs index 5ea4e0241c4604..703da0fb93072a 100644 --- a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs +++ b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs @@ -273,6 +273,7 @@ public void BasicTest_GetIPInterfaceStatistics_Success_Bsd() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // https://github.com/dotnet/runtime/issues/20029 and https://github.com/Microsoft/WSL/issues/3561 [ActiveIssue("https://github.com/dotnet/runtime/issues/50567", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] public void BasicTest_GetIsNetworkAvailable_Success() { Assert.True(NetworkInterface.GetIsNetworkAvailable()); @@ -284,6 +285,7 @@ public void BasicTest_GetIsNetworkAvailable_Success() [InlineData(false)] [InlineData(true)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50567", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task NetworkInterface_LoopbackInterfaceIndex_MatchesReceivedPackets(bool ipv6) { using (var client = new Socket(SocketType.Dgram, ProtocolType.Udp)) From bf8d9391fc1125584684a944e610b732db01e9f3 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 15 Apr 2021 13:10:37 -0400 Subject: [PATCH 19/78] [iOS][tvOS][libraries] Add System.Reflection.Tests ActiveIssues 36892 --- src/libraries/System.Reflection/tests/AssemblyTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/System.Reflection/tests/AssemblyTests.cs b/src/libraries/System.Reflection/tests/AssemblyTests.cs index 43af72686e7b61..1b068374962bc6 100644 --- a/src/libraries/System.Reflection/tests/AssemblyTests.cs +++ b/src/libraries/System.Reflection/tests/AssemblyTests.cs @@ -145,6 +145,7 @@ public void ExportedTypes(Type type, bool expected) [Fact] [SkipOnPlatform(TestPlatforms.Browser, "entry assembly won't be xunit.console on browser")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36892", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetEntryAssembly() { Assert.NotNull(Assembly.GetEntryAssembly()); @@ -719,6 +720,7 @@ public void AssemblyLoadFromBytesNeg() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36892", TestPlatforms.iOS | TestPlatforms.tvOS)] public void AssemblyLoadFromBytesWithSymbols() { Assembly assembly = typeof(AssemblyTests).Assembly; From e87df9b04063b70b223c6652d88014ecd258ff12 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 15 Apr 2021 13:19:41 -0400 Subject: [PATCH 20/78] [iOS][tvOS][libraries] Add System.Resources.ResourceManager.Tests ActiveIssues 36893 --- .../tests/ResourceManagerTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs b/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs index a7ab855896769a..539e34101f1225 100644 --- a/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs +++ b/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs @@ -82,6 +82,7 @@ public static IEnumerable CultureResourceData() [Theory] [MemberData(nameof(CultureResourceData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36893", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void GetString_CultureFallback(string key, string cultureName, string expectedValue) { Type resourceType = typeof(Resources.TestResx); @@ -92,6 +93,7 @@ public static void GetString_CultureFallback(string key, string cultureName, str } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36893", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void GetString_FromTestClassWithoutNeutralResources() { // This test is designed to complement the GetString_FromCulutureAndResourceType "fr" & "fr-CA" cases From bb2894b460ab50692d2a26531e933abc5f48d742 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 15 Apr 2021 13:28:13 -0400 Subject: [PATCH 21/78] [iOS][tvOS][libraries] Add System.Runtime.Extensions.Tests ActiveIssues 36896 --- .../System.Runtime.Extensions/tests/System/AppDomainTests.cs | 3 +++ .../System.Runtime.Extensions/tests/System/Environment.Exit.cs | 1 + .../System.Runtime.Extensions/tests/System/EnvironmentTests.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs b/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs index 449b8c7f040e82..0ae5ff0e895648 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs @@ -47,6 +47,7 @@ public void RelativeSearchPath_Is_Null() [SkipOnPlatform(TestPlatforms.Browser, "throws pNSE")] [ActiveIssue("https://github.com/dotnet/runtime/issues/49568", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49868", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TargetFrameworkTest() { const int ExpectedExitCode = 0; @@ -797,6 +798,7 @@ public static void GetPermissionSet() [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser | TestPlatforms.Android, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void TestingCreateInstanceFromObjectHandle(string physicalFileName, string assemblyFile, string type, string returnedFullNameType, Type exceptionType) { ObjectHandle oh = null; @@ -897,6 +899,7 @@ public static void TestingCreateInstanceObjectHandle(string assemblyName, string [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser | TestPlatforms.Android, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleFullSignatureData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void TestingCreateInstanceFromObjectHandleFullSignature(string physicalFileName, string assemblyFile, string type, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, string returnedFullNameType) { ObjectHandle oh = AppDomain.CurrentDomain.CreateInstanceFrom(assemblyFile: assemblyFile, typeName: type, ignoreCase: ignoreCase, bindingAttr: bindingAttr, binder: binder, args: args, culture: culture, activationAttributes: activationAttributes); diff --git a/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs b/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs index 8ca85743f417c9..9f574d00d03f6f 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs @@ -45,6 +45,7 @@ public static void ExitCode_Roundtrips(int exitCode) [SkipOnPlatform(TestPlatforms.Browser, "throws PNSE")] [ActiveIssue("https://github.com/dotnet/runtime/issues/49568", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49868", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ExitCode_VoidMainAppReturnsSetValue(int mode) { int expectedExitCode = 123; diff --git a/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs b/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs index f027d6859a8172..940a4e8b5dd8b6 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs @@ -173,6 +173,7 @@ public void OSVersion_ValidVersion() [InlineData("nelknet 4.15.0-24201807041620-generic", 4, 15, 0, int.MaxValue)] // integer overflow [InlineData("", 0, 0, 0, 0)] [InlineData("1abc", 1, 0, 0, 0)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public void OSVersion_ParseVersion(string input, int major, int minor, int build, int revision) { var getOSMethod = typeof(Environment).GetMethod("GetOperatingSystem", BindingFlags.Static | BindingFlags.NonPublic); @@ -337,6 +338,7 @@ public void FailFast_ExceptionStackTrace_InnerException() [Fact] [PlatformSpecific(TestPlatforms.AnyUnix | TestPlatforms.Browser)] // Tests OS-specific environment + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetFolderPath_Unix_PersonalIsHomeAndUserProfile() { Assert.Equal(Environment.GetEnvironmentVariable("HOME"), Environment.GetFolderPath(Environment.SpecialFolder.Personal)); From 300f063c65f531209e4a5ce86b3e18da7c4a7e45 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 11:48:54 -0400 Subject: [PATCH 22/78] [iOS][tvOS][libraries] Add System.Security.Cryptography.Encoding.Tests ActiveIssue 51388 --- .../System.Security.Cryptography.Encoding/tests/Oid.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs b/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs index c6453513873a3b..a0f4570e7df654 100644 --- a/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs +++ b/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs @@ -301,6 +301,7 @@ public static void LookupOidByFriendlyName_Method_BadInput(string badInput) [Fact] [PlatformSpecific(PlatformSupport.OpenSSL)] // Uses P/Invokes to search Oid in the lookup table + [ActiveIssue("https://github.com/dotnet/runtime/issues/51388", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void LookupOidByValue_Method_OpenSSL() { // This needs to be an OID not in the static lookup table. The purpose is to verify the @@ -314,6 +315,7 @@ public static void LookupOidByValue_Method_OpenSSL() [Fact] [PlatformSpecific(PlatformSupport.OpenSSL)] // Uses P/Invokes to search Oid in the lookup table + [ActiveIssue("https://github.com/dotnet/runtime/issues/51388", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void LookupOidByFriendlyName_Method_OpenSSL() { // This needs to be a name not in the static lookup table. The purpose is to verify the From 0c7f4e1baa82c3dae986d9562a19718e92fb34ae Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 16:54:01 -0400 Subject: [PATCH 23/78] [iOS][libraries] Add System.Security.Cryptograph.OpenSsl.Tests test proj skip --- src/libraries/tests.proj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index b34553ff484bcf..97b8ba9c80f53a 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -254,6 +254,9 @@ + + + From 004018088c534690f7667f9f6f5c7bba192baf5e Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 12:21:46 -0400 Subject: [PATCH 24/78] [iOS][tvOS][libraries] Add System.Text.Encoding.Tests ActiveIssue 51394 --- .../System.Text.Encoding/tests/Encoding/Encoding.cs | 2 ++ .../tests/Encoding/EncodingGetEncodingTests.cs | 3 +++ .../tests/UTF7Encoding/UTF7EncodingEncode.cs | 1 + .../tests/UTF7Encoding/UTF7EncodingTests.cs | 6 ++++++ 4 files changed, 12 insertions(+) diff --git a/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs b/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs index 059985fb69fa22..b9a7eb5174978c 100644 --- a/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs +++ b/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs @@ -68,6 +68,7 @@ public static void GetEncodingsTest() [Theory] [MemberData(nameof(Encoding_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void VerifyCodePageAttributes(int codepage, string name, string bodyName, string headerName, bool isBrowserDisplay, bool isBrowserSave, bool isMailNewsDisplay, bool isMailNewsSave, int windowsCodePage) { @@ -86,6 +87,7 @@ public static void VerifyCodePageAttributes(int codepage, string name, string bo [Theory] [MemberData(nameof(Normalization_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void NormalizationTest(int codepage, bool normalized, bool normalizedC, bool normalizedD, bool normalizedKC, bool normalizedKD) { Encoding encoding = Encoding.GetEncoding(codepage); diff --git a/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs b/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs index 2f19a82d50d2f3..99a316085224aa 100644 --- a/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs +++ b/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs @@ -91,6 +91,7 @@ public CodePageMapping(string name, int codepage) [ActiveIssue("https://github.com/dotnet/runtime/issues/38433", TestPlatforms.Browser)] // wasm doesn't honor runtimeconfig.json [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestEncodingNameAndCopdepageNumber() { foreach (var map in s_mapping) @@ -103,6 +104,7 @@ public void TestEncodingNameAndCopdepageNumber() [ActiveIssue("https://github.com/dotnet/runtime/issues/38433", TestPlatforms.Browser)] // wasm doesn't honor runtimeconfig.json [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetEncoding_EncodingName() { using (new ThreadCultureChange(CultureInfo.InvariantCulture)) @@ -124,6 +126,7 @@ public void GetEncoding_EncodingName() [ActiveIssue("https://github.com/dotnet/runtime/issues/38433", TestPlatforms.Browser)] // wasm doesn't honor runtimeconfig.json [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetEncoding_WebName() { foreach (var mapping in s_codePageToWebNameMappings) diff --git a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs index 7799f403d51653..6a1ec5e6f6ea91 100644 --- a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs +++ b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs @@ -62,6 +62,7 @@ public static IEnumerable Encode_Basic_TestData() [Theory] [MemberData(nameof(Encode_Basic_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Encode_Basic(string source, int index, int count, byte[] expected) { Encode_Advanced(true, source, index, count, expected); diff --git a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs index 84b5bbc71f7eba..d680bd5c403467 100644 --- a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs +++ b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs @@ -55,6 +55,7 @@ public static IEnumerable Encodings_TestData() [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void WebName(UTF7Encoding encoding) { Assert.Equal("utf-7", encoding.WebName); @@ -63,6 +64,7 @@ public void WebName(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void CodePage(UTF7Encoding encoding) { Assert.Equal(65000, encoding.CodePage); @@ -71,6 +73,7 @@ public void CodePage(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void EncodingName(UTF7Encoding encoding) { Assert.NotEmpty(encoding.EncodingName); // Unicode (UTF-7) in en-US @@ -79,6 +82,7 @@ public void EncodingName(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void IsSingleByte(UTF7Encoding encoding) { Assert.False(encoding.IsSingleByte); @@ -87,6 +91,7 @@ public void IsSingleByte(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Clone(UTF7Encoding encoding) { UTF7Encoding clone = (UTF7Encoding)encoding.Clone(); @@ -121,6 +126,7 @@ public static IEnumerable Equals_TestData() [Theory] [MemberData(nameof(Equals_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] public void EqualsTest(UTF7Encoding encoding, object value, bool expected) { Assert.Equal(expected, encoding.Equals(value)); From 2b332e31db8913c319aa206e60a510e4c25cd10d Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 15 Apr 2021 15:10:17 -0400 Subject: [PATCH 25/78] [iOs][tvOS][libraries] Add System.Text.RegularExpressions.Tests ActiveIssue 36900 --- .../System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs b/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs index 0b74edd62269b3..abb8e011383a6b 100644 --- a/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs +++ b/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs @@ -871,6 +871,7 @@ public static IEnumerable Groups_CustomCulture_TestData_AzeriLatin() [MemberData(nameof(Groups_CustomCulture_TestData_Turkish))] [MemberData(nameof(Groups_CustomCulture_TestData_AzeriLatin))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36848", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36900", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Groups(string cultureName, string pattern, string input, RegexOptions options, string[] expectedGroups) { if (cultureName is null) From 476be16471831d433737a1a75e38af439afba6a2 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 12:38:34 -0400 Subject: [PATCH 26/78] [iOS][tvOS][libraries] Add System.Threading.Tests ActiveIssue 51400 --- .../System.Threading/tests/AutoResetEventTests.cs | 1 + .../System.Threading/tests/ExecutionContextTests.cs | 2 ++ .../System.Threading/tests/ManualResetEventTests.cs | 1 + .../System.Threading/tests/ReaderWriterLockTests.cs | 7 +++++++ src/libraries/System.Threading/tests/SemaphoreTests.cs | 1 + 5 files changed, 12 insertions(+) diff --git a/src/libraries/System.Threading/tests/AutoResetEventTests.cs b/src/libraries/System.Threading/tests/AutoResetEventTests.cs index dba9b4b46df64e..d831e99f90bfcd 100644 --- a/src/libraries/System.Threading/tests/AutoResetEventTests.cs +++ b/src/libraries/System.Threading/tests/AutoResetEventTests.cs @@ -87,6 +87,7 @@ public void WaitHandleWaitAny() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public void PingPong() { using (AutoResetEvent are1 = new AutoResetEvent(true), are2 = new AutoResetEvent(false)) diff --git a/src/libraries/System.Threading/tests/ExecutionContextTests.cs b/src/libraries/System.Threading/tests/ExecutionContextTests.cs index d813813bbc5535..0e6e7ce42ecf1a 100644 --- a/src/libraries/System.Threading/tests/ExecutionContextTests.cs +++ b/src/libraries/System.Threading/tests/ExecutionContextTests.cs @@ -63,6 +63,7 @@ public static void DisposeTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void FlowTest() { ThreadTestHelpers.RunTestInBackgroundThread(() => @@ -170,6 +171,7 @@ public static void FlowTest() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void CaptureThenSuppressThenRunFlowTest() { ThreadTestHelpers.RunTestInBackgroundThread(() => diff --git a/src/libraries/System.Threading/tests/ManualResetEventTests.cs b/src/libraries/System.Threading/tests/ManualResetEventTests.cs index 5d170f089c0f0b..65616851211f68 100644 --- a/src/libraries/System.Threading/tests/ManualResetEventTests.cs +++ b/src/libraries/System.Threading/tests/ManualResetEventTests.cs @@ -72,6 +72,7 @@ public void WaitHandleWaitAny() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public void PingPong() { using (ManualResetEvent mre1 = new ManualResetEvent(true), mre2 = new ManualResetEvent(false)) diff --git a/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs b/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs index d7c08c6711865b..287bd29e59b8b2 100644 --- a/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs +++ b/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs @@ -123,6 +123,7 @@ public static void InvalidLockCookieTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void BasicLockTest() { var trwl = new TestReaderWriterLock(); @@ -512,6 +513,7 @@ public static void WaitingReadersTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void WaitingWritersTest() { var trwl = new TestReaderWriterLock(); @@ -544,6 +546,7 @@ public static void WaitingWritersTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ReadersWaitingOnWaitingWriterTest() { var trwl = new TestReaderWriterLock(); @@ -595,6 +598,7 @@ public static void ReadersWaitingOnWaitingWriterTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ReadersWaitingOnWaitingUpgraderTest() { var trwl = new TestReaderWriterLock(); @@ -649,6 +653,7 @@ public static void ReadersWaitingOnWaitingUpgraderTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void WaitingUpgradersTest() { var trwl = new TestReaderWriterLock(); @@ -695,6 +700,7 @@ public static void WaitingUpgradersTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AtomicRecursiveReaderTest() { var trwl = new TestReaderWriterLock(); @@ -722,6 +728,7 @@ public static void AtomicRecursiveReaderTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AtomicDowngradeTest() { var trwl = new TestReaderWriterLock(); diff --git a/src/libraries/System.Threading/tests/SemaphoreTests.cs b/src/libraries/System.Threading/tests/SemaphoreTests.cs index 35d52e599dbfc8..40fba8123f00cf 100644 --- a/src/libraries/System.Threading/tests/SemaphoreTests.cs +++ b/src/libraries/System.Threading/tests/SemaphoreTests.cs @@ -140,6 +140,7 @@ public void Release() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] public void AnonymousProducerConsumer() { using (Semaphore s = new Semaphore(0, int.MaxValue)) From b8bdc81ad0110363f358630eac1851d489d90259 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 16 Apr 2021 16:54:34 -0400 Subject: [PATCH 27/78] [iOS][tvOS][libraries] Remove dated test exclusions --- src/libraries/tests.proj | 103 --------------------------------------- 1 file changed, 103 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 97b8ba9c80f53a..f25ced0db5e338 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -135,84 +135,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -265,31 +187,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - From 4bce18f71574423f51fe922115d2be8187728d82 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 19 Apr 2021 09:56:04 -0400 Subject: [PATCH 28/78] [iOS][tvOS][libraries] Skip test suites that crash or hang in iOS/tvOS --- src/libraries/tests.proj | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index f25ced0db5e338..3f0b215a8fefcb 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -179,6 +179,15 @@ + + + + + + + + + From ba9614e31c6dd73a1dd3ed58313eff471ef1791a Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 28 Apr 2021 17:05:16 -0400 Subject: [PATCH 29/78] [tvOS] Add System.Linq.Expressions.Tests hangs ActiveIssue --- .../tests/Array/ArrayArrayIndexTests.cs | 4 ++++ .../System.Linq.Expressions/tests/Array/ArrayIndexTests.cs | 1 + .../tests/Array/NullableArrayIndexTests.cs | 2 ++ .../tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs | 1 + .../tests/Block/NoParameterBlockTests.cs | 1 + src/libraries/System.Linq.Expressions/tests/Call/CallTests.cs | 1 + src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs | 4 ++++ .../System.Linq.Expressions/tests/Member/MemberAccessTests.cs | 3 +++ .../tests/SequenceTests/SequenceTests.cs | 1 + .../System.Linq.Expressions/tests/TypeBinary/TypeIs.cs | 1 + .../System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs | 1 + .../System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs | 1 + 12 files changed, 21 insertions(+) diff --git a/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs index 1bd056bba9af38..58419de494db32 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs @@ -5,6 +5,7 @@ namespace System.Linq.Expressions.Tests { + [ActiveIssue("", TestPlatforms.tvOS)] public static class ArrayArrayIndexTests { #region Boolean tests @@ -113,6 +114,7 @@ public static void CheckCharArrayArrayIndexTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionCharArrayArrayIndexTest(bool useInterpreter) { // null arrays @@ -144,6 +146,7 @@ public static void CheckCustom2ArrayArrayIndexTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionCustom2ArrayArrayIndexTest(bool useInterpreter) { // null arrays @@ -1015,6 +1018,7 @@ public static void CheckGenericCustomWithClassAndNewRestrictionArrayArrayIndexTe [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionGenericCustomWithClassAndNewRestrictionArrayArrayIndexTest(bool useInterpreter) { CheckExceptionGenericWithClassAndNewRestrictionArrayArrayIndexTestHelper(useInterpreter); diff --git a/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs index 47079261232635..8c7ba48be7e9b4 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs @@ -5,6 +5,7 @@ namespace System.Linq.Expressions.Tests { + [ActiveIssue("", TestPlatforms.tvOS)] public static class ArrayIndexTests { #region Boolean tests diff --git a/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs index 91754a96bc27e8..1db1148b7a6e69 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs @@ -5,6 +5,7 @@ namespace System.Linq.Expressions.Tests { + [ActiveIssue("", TestPlatforms.tvOS)] public static class NullableArrayIndexTests { #region NullableBool tests @@ -337,6 +338,7 @@ public static void CheckNullableShortArrayIndexTest(bool useInterpreter) } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionNullableShortArrayIndexTest(bool useInterpreter) { // null arrays diff --git a/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs b/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs index c1a41f30861c20..5821aaccc44c86 100644 --- a/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs @@ -107,6 +107,7 @@ public static void CheckULongModuloTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckLongModuloTest(bool useInterpreter) { long[] array = new long[] { 0, 1, -1, long.MinValue, long.MaxValue }; diff --git a/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs b/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs index 4891d348c29bbd..24c5ac9bb52610 100644 --- a/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs @@ -292,6 +292,7 @@ public void ResultPropertyFromParams(object value, int blockSize) [Theory] [MemberData(nameof(ConstantValuesAndSizes))] + [ActiveIssue("", TestPlatforms.tvOS)] public void ResultPropertyFromEnumerable(object value, int blockSize) { ConstantExpression constant = Expression.Constant(value, value.GetType()); diff --git a/src/libraries/System.Linq.Expressions/tests/Call/CallTests.cs b/src/libraries/System.Linq.Expressions/tests/Call/CallTests.cs index 43e504c46dfe7f..f0c444283c87e8 100644 --- a/src/libraries/System.Linq.Expressions/tests/Call/CallTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Call/CallTests.cs @@ -252,6 +252,7 @@ public static void CallByRefAttemptTailCall(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51949", TestPlatforms.tvOS)] public static void Call_InstanceNullInside_ThrowsNullReferenceExceptionOnInvocation(bool useInterpreter) { Expression call = Expression.Call(Expression.Constant(null, typeof(NonGenericClass)), typeof(NonGenericClass).GetMethod(nameof(NonGenericClass.InstanceMethod))); diff --git a/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs b/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs index 090878f8fee7ec..c222ea19f17ee5 100644 --- a/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs @@ -7,6 +7,7 @@ namespace System.Linq.Expressions.Tests { + [ActiveIssue("", TestPlatforms.tvOS)] public static class CastTests { #region Test methods @@ -908,12 +909,14 @@ public static void ConvertObjectCastGenericWithStructRestrictionAsEnum(bool useI } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertObjectCastGenericWithStructRestrictionAsStruct(bool useInterpreter) { CheckObjectCastGenericWithStructRestrictionHelper(useInterpreter); } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertObjectCastGenericWithStructRestrictionAsStructWithStringAndField(bool useInterpreter) { CheckObjectCastGenericWithStructRestrictionHelper(useInterpreter); @@ -1010,6 +1013,7 @@ public static void ConvertValueTypeCastGenericWithStructRestrictionAsEnum(bool u } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertValueTypeCastGenericWithStructRestrictionAsStruct(bool useInterpreter) { CheckValueTypeCastGenericWithStructRestrictionHelper(useInterpreter); diff --git a/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs b/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs index cca9a0e08c85b8..f23038a90b9b0b 100644 --- a/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs @@ -8,6 +8,7 @@ namespace System.Linq.Expressions.Tests { + [ActiveIssue("", TestPlatforms.tvOS)] public static class MemberAccessTests { private class UnreadableIndexableClass @@ -335,6 +336,7 @@ public static void CheckMemberAccessClassStaticPropertyTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckMemberAccessClassInstanceFieldNullReferenceTest(bool useInterpreter) { Expression> e = @@ -367,6 +369,7 @@ public static void CheckMemberAccessClassInstanceFieldAssignNullReferenceTest(bo [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckMemberAccessClassInstancePropertyNullReferenceTest(bool useInterpreter) { Expression> e = diff --git a/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs b/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs index 871721f81f4d23..1045933b3194ac 100644 --- a/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs @@ -1486,6 +1486,7 @@ private static S TestConvertChecked(T value, bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertNullToInt(bool useInterpreter) { Assert.Throws(() => diff --git a/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs b/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs index 26edcd31eff7e6..5fb4aff29154b8 100644 --- a/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs +++ b/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs @@ -57,6 +57,7 @@ public void CannotReduce() [Theory] [MemberData(nameof(ExpressionAndTypeCombinations))] + [ActiveIssue("", TestPlatforms.tvOS)] public void TypePropertyMatches(Expression expression, Type type) { Assert.Equal(type, Expression.TypeIs(expression, type).TypeOperand); diff --git a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs index d0b82224e6734e..de6673dbfb1568 100644 --- a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs @@ -57,6 +57,7 @@ public static void CheckUnaryConvertBooleanToNumericTest(bool useInterpreter) } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertNullToNonNullableValueTest(bool useInterpreter) { foreach (var e in ConvertNullToNonNullableValue()) diff --git a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs index 2ec61247eab7fd..8d74377e073e7d 100644 --- a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs @@ -10,6 +10,7 @@ public static class UnaryUnboxTests #region Test methods [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckUnaryUnboxTest(bool useInterpreter) { VerifyUnbox(42, typeof(int), false, useInterpreter); From a22fc0b489cc6652a04a8d4d8f3eff45f4a5b0ac Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 28 Apr 2021 17:06:15 -0400 Subject: [PATCH 30/78] [tvOS] Add System.Memory.Tests hangs ActiveIssue --- .../System.Memory/tests/MemoryMarshal/GetArrayDataReference.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Memory/tests/MemoryMarshal/GetArrayDataReference.cs b/src/libraries/System.Memory/tests/MemoryMarshal/GetArrayDataReference.cs index a421cfdb61006a..5652d275f90cc7 100644 --- a/src/libraries/System.Memory/tests/MemoryMarshal/GetArrayDataReference.cs +++ b/src/libraries/System.Memory/tests/MemoryMarshal/GetArrayDataReference.cs @@ -10,6 +10,7 @@ namespace System.SpanTests public static partial class MemoryMarshalTests { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36885", TestPlatforms.tvOS)] public static void GetArrayDataReference_NullInput_ThrowsNullRef() { Assert.Throws(() => MemoryMarshal.GetArrayDataReference((object[])null)); From aee8f62dcf74629e2177726fbf3e911b42fa60ce Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 28 Apr 2021 17:08:16 -0400 Subject: [PATCH 31/78] [iOS][tvOS] Add System.Net.Sockets.Tests hangs ActiveIssue --- .../tests/FunctionalTests/ExecutionContextFlowTest.cs | 1 + .../System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs | 1 + .../tests/FunctionalTests/ReceiveMessageFrom.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ExecutionContextFlowTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ExecutionContextFlowTest.cs index 52996e5bf33d4a..4a020d921adde1 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ExecutionContextFlowTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ExecutionContextFlowTest.cs @@ -454,6 +454,7 @@ public async Task APM_ExecutionContextFlowsAcrossBeginSendOperation(bool suppres [Theory] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task APM_ExecutionContextFlowsAcrossBeginSendFileOperation(bool suppressContext) { using (var listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs index f35808386faae4..9944fa3a4eb80a 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs @@ -170,6 +170,7 @@ public async Task ClosedBeforeOperation_Throws_ObjectDisposedException(bool clos [Theory] [InlineData(true)] [InlineData(false)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ClosedDuringOperation_Throws_ObjectDisposedExceptionOrSocketException(bool closeOrDispose) { if (UsesSync && PlatformDetection.IsOSX) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs index eca9145414d1ed..dfad7539897f3a 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs @@ -174,6 +174,7 @@ public async Task ClosedBeforeOperation_Throws_ObjectDisposedException(bool clos [Theory] [InlineData(true)] [InlineData(false)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ClosedDuringOperation_Throws_ObjectDisposedExceptionOrSocketException(bool closeOrDispose) { if (UsesSync && PlatformDetection.IsOSX) From aa69c73d7926bab48d916403fcca2a682ea11106 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 22 Apr 2021 15:41:04 -0400 Subject: [PATCH 32/78] [iOS][libraries] Remove ios target from System.IO.Ports --- .../System.IO.Ports/tests/System.IO.Ports.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.IO.Ports/tests/System.IO.Ports.Tests.csproj b/src/libraries/System.IO.Ports/tests/System.IO.Ports.Tests.csproj index 33c4af5c4ae0b8..1267d77477c099 100644 --- a/src/libraries/System.IO.Ports/tests/System.IO.Ports.Tests.csproj +++ b/src/libraries/System.IO.Ports/tests/System.IO.Ports.Tests.csproj @@ -1,6 +1,6 @@ - $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-FreeBSD;net461-windows + $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-FreeBSD;net461-windows From 09be804cf1ace70ae8eeb5fd925e279d584de29b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 29 Apr 2021 15:21:33 -0400 Subject: [PATCH 33/78] [iOS][tvOS] Add System.Runtime.Tests ActiveIssue 52072 --- src/libraries/Common/tests/Tests/System/StringTests.cs | 1 + src/libraries/System.Runtime/tests/System/ActivatorTests.cs | 3 +++ .../System.Runtime/tests/System/Reflection/ModuleTests.cs | 1 + .../System.Runtime/tests/System/TimeZoneInfoTests.cs | 5 +++++ src/libraries/System.Runtime/tests/System/Type/TypeTests.cs | 3 +++ 5 files changed, 13 insertions(+) diff --git a/src/libraries/Common/tests/Tests/System/StringTests.cs b/src/libraries/Common/tests/Tests/System/StringTests.cs index fcee8ec7d78cce..ae9cec8b63c788 100644 --- a/src/libraries/Common/tests/Tests/System/StringTests.cs +++ b/src/libraries/Common/tests/Tests/System/StringTests.cs @@ -7300,6 +7300,7 @@ public static void InternalTestAotSubset() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))] [ActiveIssue("https://github.com/dotnet/runtime/issues/34577", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static unsafe void NormalizationTest() // basic test; more tests in globalization tests { // U+0063 LATIN SMALL LETTER C diff --git a/src/libraries/System.Runtime/tests/System/ActivatorTests.cs b/src/libraries/System.Runtime/tests/System/ActivatorTests.cs index 4751c15dcdad1e..81d81065f69042 100644 --- a/src/libraries/System.Runtime/tests/System/ActivatorTests.cs +++ b/src/libraries/System.Runtime/tests/System/ActivatorTests.cs @@ -621,6 +621,7 @@ public void CreateInstance_PublicOnlyValueTypeWithPrivateDefaultConstructor_Thro [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void TestingCreateInstanceFromObjectHandle(string physicalFileName, string assemblyFile, string type, string returnedFullNameType, Type exceptionType) { ObjectHandle oh = null; @@ -663,6 +664,7 @@ public static void TestingCreateInstanceFromObjectHandle(string physicalFileName [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/51912", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] [MemberData(nameof(TestingCreateInstanceObjectHandleData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void TestingCreateInstanceObjectHandle(string assemblyName, string type, string returnedFullNameType, Type exceptionType, bool returnNull) { ObjectHandle oh = null; @@ -720,6 +722,7 @@ public static void TestingCreateInstanceObjectHandle(string assemblyName, string [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleFullSignatureData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void TestingCreateInstanceFromObjectHandleFullSignature(string physicalFileName, string assemblyFile, string type, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, string returnedFullNameType) { ObjectHandle oh = Activator.CreateInstanceFrom(assemblyFile: assemblyFile, typeName: type, ignoreCase: ignoreCase, bindingAttr: bindingAttr, binder: binder, args: args, culture: culture, activationAttributes: activationAttributes); diff --git a/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs b/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs index 851317583e4f10..adfcd5cdd4c487 100644 --- a/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs +++ b/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs @@ -303,6 +303,7 @@ public void ResolveMethodFail(int token) [Theory] [MemberData(nameof(Fields))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ResolveField(FieldInfo t) { Assert.Equal(t, Module.ResolveField(t.MetadataToken)); diff --git a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs index 3b72bf0bdf8a53..fcb17222a243df 100644 --- a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs +++ b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs @@ -124,6 +124,7 @@ public static IEnumerable Platform_TimeZoneNamesTestData() // We test the existence of a specific English time zone name to avoid failures on non-English platforms. [ConditionalTheory(nameof(IsEnglishUILanguage))] [MemberData(nameof(Platform_TimeZoneNamesTestData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void Platform_TimeZoneNames(TimeZoneInfo tzi, string displayName, string standardName, string daylightName) { // Edge case - Optionally allow some characters to be absent in the display name. @@ -2621,6 +2622,7 @@ public static void EnsureUtcObjectSingleton() [InlineData("Argentina Standard Time", "America/Argentina/Catamarca")] [InlineData("Newfoundland Standard Time", "America/St_Johns")] [InlineData("Iran Standard Time", "Asia/Tehran")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void UsingAlternativeTimeZoneIdsTest(string windowsId, string ianaId) { if (PlatformDetection.ICUVersion.Major >= 52) @@ -2641,6 +2643,7 @@ public static void UsingAlternativeTimeZoneIdsTest(string windowsId, string iana public static bool SupportIanaNamesConversion => PlatformDetection.IsNotBrowser && PlatformDetection.ICUVersion.Major >= 52; [ConditionalFact(nameof(SupportIanaNamesConversion))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void IsIanaIdTest() { bool expected = !s_isWindows; @@ -2670,6 +2673,7 @@ public static void IsIanaIdTest() [InlineData("Argentina Standard Time", "America/Buenos_Aires")] [InlineData("Newfoundland Standard Time", "America/St_Johns")] [InlineData("Iran Standard Time", "Asia/Tehran")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void IdsConversionsTest(string windowsId, string ianaId) { Assert.True(TimeZoneInfo.TryConvertIanaIdToWindowsId(ianaId, out string winId)); @@ -2691,6 +2695,7 @@ public static void IdsConversionsTest(string windowsId, string ianaId) [InlineData("Central Europe Standard Time", "Europe/Tirane", "AL")] [InlineData("Central Europe Standard Time", "Europe/Podgorica", "ME")] [InlineData("Central Europe Standard Time", "Europe/Belgrade", "RS")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void IdsConversionsWithRegionTest(string windowsId, string ianaId, string region) { Assert.True(TimeZoneInfo.TryConvertWindowsIdToIanaId(windowsId, region, out string ianaConvertedId)); diff --git a/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs b/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs index a7e21552fcd615..6717e79c819211 100644 --- a/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs +++ b/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs @@ -248,6 +248,7 @@ public static IEnumerable MakeArray_UnusualTypes_TestData() [Theory] [MemberData(nameof(MakeArray_UnusualTypes_TestData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public void MakeArrayType_UnusualTypes_ReturnsExpected(Type t) { Type tArray = t.MakeArrayType(); @@ -587,6 +588,7 @@ public void IsSZArray_FalseForNonArrayTypes() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public void IsSZArray_TrueForSZArrayTypes() { foreach (Type type in NonArrayBaseTypes.Select(nonArrayBaseType => nonArrayBaseType.MakeArrayType())) @@ -638,6 +640,7 @@ public void IsVariableBoundArray_FalseForNonArrayTypes() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] public void IsVariableBoundArray_FalseForSZArrayTypes() { foreach (Type type in NonArrayBaseTypes.Select(nonArrayBaseType => nonArrayBaseType.MakeArrayType())) From 757023e947743de8f1442fa0c8ed1f270890481e Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 29 Apr 2021 16:08:57 -0400 Subject: [PATCH 34/78] [iOS][tvOS] Add System.Threading.Thread.Tests PNSE ActiveIssue --- .../System.Threading.Thread/tests/ThreadTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libraries/System.Threading.Thread/tests/ThreadTests.cs b/src/libraries/System.Threading.Thread/tests/ThreadTests.cs index 260399635e82c9..b2d021d0d00df1 100644 --- a/src/libraries/System.Threading.Thread/tests/ThreadTests.cs +++ b/src/libraries/System.Threading.Thread/tests/ThreadTests.cs @@ -171,6 +171,7 @@ public static IEnumerable ApartmentStateTest_MemberData() [InlineData("DefaultApartmentStateMain.exe", "SetApartmentStateTest")] [ActiveIssue("https://github.com/dotnet/runtime/issues/49568", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ApartmentState_AttributePresent(string appName, string testName) { var psi = new ProcessStartInfo(); @@ -578,6 +579,7 @@ public static void IsBackgroundTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void IsThreadPoolThreadTest() { var isThreadPoolThread = false; @@ -603,6 +605,7 @@ public static void IsThreadPoolThreadTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ManagedThreadIdTest() { var e = new ManualResetEvent(false); @@ -674,6 +677,7 @@ public static void ThreadNameDoesNotAffectProcessName() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void PriorityTest() { var e = new ManualResetEvent(false); @@ -693,6 +697,7 @@ public static void PriorityTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ThreadStateTest() { var e0 = new ManualResetEvent(false); @@ -731,6 +736,7 @@ public static void ThreadStateTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AbortSuspendTest() { var e = new ManualResetEvent(false); @@ -922,6 +928,7 @@ public static void LocalDataSlotTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49521", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InterruptTest() { // Interrupting a thread that is not blocked does not do anything, but once the thread starts blocking, it gets @@ -972,6 +979,7 @@ public static void InterruptTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49521", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InterruptInFinallyBlockTest_SkipOnDesktopFramework() { // A wait in a finally block can be interrupted. The .NET Framework applies the same rules as thread abort, and @@ -998,6 +1006,7 @@ public static void InterruptInFinallyBlockTest_SkipOnDesktopFramework() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void JoinTest() { var threadReady = new ManualResetEvent(false); @@ -1050,6 +1059,7 @@ public static void SleepTest() [InlineData(false)] [InlineData(true)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void StartTest(bool useUnsafeStart) { void Start(Thread t) From 263f83652a8f45ab28ce55771ca642d61f1e2378 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 29 Apr 2021 17:29:04 -0400 Subject: [PATCH 35/78] [iOS][tvOS] Refactor test suite skips --- src/libraries/tests.proj | 55 +++++++++++++++------------------------- 1 file changed, 20 insertions(+), 35 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 3f0b215a8fefcb..23f58412adad8b 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -135,51 +135,36 @@ - + + - - - - - + + + + + - - - - - - + + + + + - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - From 754d6fcf74864db3ff07bf5eb8ab88ae529589ec Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 30 Apr 2021 13:26:23 -0400 Subject: [PATCH 36/78] [iOS][tvOS] Add System.Net.Quic.Functional.Tests test proj skip --- src/libraries/tests.proj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 23f58412adad8b..76dd12a0918cb4 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -140,6 +140,7 @@ + From 77692f254cd2f07ee5cec858d696260ef86068e3 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 30 Apr 2021 14:16:53 -0400 Subject: [PATCH 37/78] [iOS][tvOS] Add issues for hanging and crashed test suites --- src/libraries/tests.proj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 76dd12a0918cb4..6c5217224e26ec 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -167,13 +167,14 @@ + - + - + + - From 23bf1c2ae933d9d56694155b1afb85214079404f Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 30 Apr 2021 14:29:22 -0400 Subject: [PATCH 38/78] [iOS][tvOS] Add System.Net.Sockets.Tests ActiveIssue 52124 --- .../tests/FunctionalTests/CreateSocketTests.cs | 4 ++++ .../tests/FunctionalTests/DualModeSocketTest.cs | 1 + .../tests/FunctionalTests/ReceiveFrom.cs | 1 + .../tests/FunctionalTests/ReceiveMessageFrom.cs | 1 + .../tests/FunctionalTests/SelectTest.cs | 3 +++ .../tests/FunctionalTests/SendReceive/SendReceive.cs | 2 ++ .../tests/FunctionalTests/SocketOptionNameTest.cs | 3 +++ .../tests/FunctionalTests/TcpListenerTest.cs | 1 + .../tests/FunctionalTests/UdpClientTest.cs | 1 + .../tests/FunctionalTests/UnixDomainSocketTest.cs | 9 +++++++++ 10 files changed, 26 insertions(+) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs index 230495629c4173..dfdf0694791eac 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs @@ -274,6 +274,7 @@ public void Ctor_Socket_FromPipeHandle_Ctor_Dispose_Success(bool ownsHandle) [InlineData(AddressFamily.InterNetworkV6, SocketType.Raw, ProtocolType.Unspecified)] [InlineData(AddressFamily.Packet, SocketType.Raw, ProtocolType.Raw)] [InlineData(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Ctor_SafeHandle_BasicPropertiesPropagate_Success(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) { bool isRawPacket = (addressFamily == AddressFamily.Packet) && @@ -384,6 +385,7 @@ public void Ctor_SafeHandle_BasicPropertiesPropagate_Success(AddressFamily addre [Theory] [InlineData(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)] [InlineData(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Ctor_SafeHandle_Tcp_SendReceive_Success(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) { using var orig = new Socket(addressFamily, socketType, protocolType); @@ -443,6 +445,7 @@ public async Task Ctor_SafeHandle_Tcp_SendReceive_Success(AddressFamily addressF [Theory] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Ctor_SafeHandle_Listening_Success(bool shareSafeHandle) { using var listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); @@ -652,6 +655,7 @@ private static unsafe (int, int) pipe2(int flags = 0) [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public unsafe void Ctor_SafeHandle_SocketPair_Success() { // This is platform dependent but it seems like this is same on all supported platforms. diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs index b8d7d619f31153..6104f076a258a2 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs @@ -354,6 +354,7 @@ public void Socket_BeginConnectV4IPAddressToV4Host_Throws() public Task BeginConnectV4IPAddressToV4Host_Success() => DualModeBeginConnect_IPAddressToHost_Helper(IPAddress.Loopback, IPAddress.Loopback, false); [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public Task BeginConnectV6IPAddressToV6Host_Success() => DualModeBeginConnect_IPAddressToHost_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback, false); [Fact] diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs index 9944fa3a4eb80a..482c0712051d1d 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs @@ -86,6 +86,7 @@ public async Task NotBound_Throws_InvalidOperationException() [Theory] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ReceiveSent_TCP_Success(bool ipv6) { if (ipv6 && PlatformDetection.IsOSX) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs index dfad7539897f3a..8c22dcaec415a5 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs @@ -87,6 +87,7 @@ public async Task NotBound_Throws_InvalidOperationException() [Theory] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ReceiveSent_TCP_Success(bool ipv6) { if (ipv6 && PlatformDetection.IsOSX) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs index 5a7edea1ccd75b..6cc49153f887eb 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs @@ -111,6 +111,7 @@ public void Select_SocketAlreadyClosed_AllSocketsClosableAfterException(int sock [SkipOnPlatform(TestPlatforms.OSX, "typical OSX install has very low max open file descriptors value")] [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Select_ReadError_NoneReady_ManySockets() { Select_ReadError_NoneReady(45, 45); @@ -178,6 +179,7 @@ public void Select_Read_OneReadyAtATime(int reads) [SkipOnPlatform(TestPlatforms.OSX, "typical OSX install has very low max open file descriptors value")] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Select_Error_OneReadyAtATime() { const int Errors = 90; // value larger than the internal value in SocketPal.Unix that swaps between stack and heap allocation @@ -225,6 +227,7 @@ public void Poll_NotReady(SelectMode mode) [Theory] [InlineData(-1)] [InlineData(FailTimeoutMicroseconds)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Poll_ReadReady_LongTimeouts(int microsecondsTimeout) { KeyValuePair pair = CreateConnectedSockets(); diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs index 478951acd7770b..1d3c519cf5c2fd 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs @@ -753,6 +753,7 @@ await Task.WhenAll( [Fact] [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "SendBufferSize, ReceiveBufferSize = 0 not supported on BSD like stacks.")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task SendRecv_NoBuffering_Success() { if (UsesSync) return; @@ -931,6 +932,7 @@ error is SocketException || [Theory] [MemberData(nameof(UdpReceiveGetsCanceledByDispose_Data))] [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task UdpReceiveGetsCanceledByDispose(IPAddress address) { // We try this a couple of times to deal with a timing race: if the Dispose happens diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs index 9b83b4da3f9590..606b35636cd876 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs @@ -122,6 +122,7 @@ public void MulticastInterface_Set_InvalidIndex_Throws() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // Skip on Nano: https://github.com/dotnet/runtime/issues/26286 [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "Expected behavior is different on OSX or FreeBSD")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task MulticastInterface_Set_IPv6_AnyInterface_Succeeds() { if (PlatformDetection.IsRedHatFamily7) @@ -507,6 +508,7 @@ public void SetIPProtectionLevel_ArgumentException(AddressFamily family) [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50568", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public void GetSetRawSocketOption_Roundtrips(AddressFamily family) { int SOL_SOCKET; @@ -546,6 +548,7 @@ public void GetSetRawSocketOption_Roundtrips(AddressFamily family) } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Get_AcceptConnection_Succeeds() { using (Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs index e442a33ade7e20..19f0c45bc71c5e 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs @@ -128,6 +128,7 @@ public void Accept_Invalid_Throws() [InlineData(0)] // Sync [InlineData(1)] // Async [InlineData(2)] // APM + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Accept_AcceptsPendingSocketOrClient(int mode) { var listener = new TcpListener(IPAddress.Loopback, 0); diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs index b639f88d8f6385..cde199879108ad 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs @@ -257,6 +257,7 @@ public void Ttl_Roundtrips() [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "BSD like doesn't have an equivalent of DontFragment")] [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DontFragment_Roundtrips() { using (var udpClient = new UdpClient()) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs index 7b155639807cea..99499ebe62f23a 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs @@ -29,6 +29,7 @@ public void OSSupportsUnixDomainSockets_ReturnsCorrectValue() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_Success() { string path = null; @@ -84,6 +85,7 @@ public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_Success() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_NotServer() { string path = GetRandomNonExistingFilePath(); @@ -118,6 +120,7 @@ public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_NotServer() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Socket_SendReceive_Success() { string path = GetRandomNonExistingFilePath(); @@ -155,6 +158,7 @@ public void Socket_SendReceive_Success() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Socket_SendReceive_Clone_Success() { string path = GetRandomNonExistingFilePath(); @@ -205,6 +209,7 @@ public void Socket_SendReceive_Clone_Success() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Socket_SendReceiveAsync_Success() { string path = GetRandomNonExistingFilePath(); @@ -247,6 +252,7 @@ public async Task Socket_SendReceiveAsync_Success() [InlineData(500, 18, 21)] [InlineData(500, 21, 18)] [InlineData(5, 128000, 64000)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task Socket_SendReceiveAsync_PropagateToStream_Success(int iterations, int writeBufferSize, int readBufferSize) { var writeBuffer = new byte[writeBufferSize * iterations]; @@ -308,6 +314,7 @@ public async Task Socket_SendReceiveAsync_PropagateToStream_Success(int iteratio [ActiveIssue("https://github.com/dotnet/runtime/issues/26189", TestPlatforms.Windows)] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ConcurrentSendReceive(bool forceNonBlocking) { using (Socket server = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified)) @@ -350,6 +357,7 @@ public async Task ConcurrentSendReceive(bool forceNonBlocking) } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task ConcurrentSendReceiveAsync() { using (Socket server = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified)) @@ -404,6 +412,7 @@ public void UnixDomainSocketEndPoint_InvalidPaths_Throws() [ConditionalTheory(nameof(PlatformSupportsUnixDomainSockets))] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] public void UnixDomainSocketEndPoint_RemoteEndPointEqualsBindAddress(bool abstractAddress) { string serverAddress; From 854b0b1b5816dd592f1c712f7edc2e8b751f7373 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 30 Apr 2021 15:01:33 -0400 Subject: [PATCH 39/78] [iOS][tvOS] Update System.Security.Cryptography.Csp.Tests ActiveIssue --- .../tests/DSACryptoServiceProviderTests.cs | 1 + src/libraries/tests.proj | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs b/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs index d2a64c4a96fd89..f27a8a949f07e1 100644 --- a/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs +++ b/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs @@ -33,6 +33,7 @@ public static void PublicOnly_DefaultKey() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51331", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void PublicOnly_WithPrivateKey() { using (var dsa = new DSACryptoServiceProvider()) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 6c5217224e26ec..aac722118ac4dd 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -153,8 +153,6 @@ - - From 4c1baceb838373ce5ffb6b8808475d2e1001050b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 30 Apr 2021 15:13:59 -0400 Subject: [PATCH 40/78] [iOS][tvOS] Update System.Cryptography.Algorithms ActiveIssue --- .../ECDsa/ECDsaTests.netcoreapp.cs | 1 + .../tests/AesCcmTests.cs | 9 +++++++++ .../tests/AesGcmTests.cs | 16 ++++++++++++++++ src/libraries/tests.proj | 2 -- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs index ab36bacd98d4eb..5d850858d6c4fe 100644 --- a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs +++ b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs @@ -80,6 +80,7 @@ public void KeySizeProp() } [Theory, MemberData(nameof(TestNewCurves))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestRegenKeyExplicit(CurveDef curveDef) { ECParameters param, param2; diff --git a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs index 6f5f77aa501849..d92ef9fe1e58f8 100644 --- a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs +++ b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs @@ -12,6 +12,7 @@ namespace System.Security.Cryptography.Algorithms.Tests public class AesCcmTests : CommonAEADTests { [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] [MemberData(nameof(EncryptTamperAADDecryptTestInputs))] public static void EncryptTamperAADDecrypt(int dataLength, int additionalDataLength) { @@ -72,6 +73,7 @@ public static void InvalidNonceSize(int nonceSize) [Theory] [MemberData(nameof(GetValidNonceSizes))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ValidNonceSize(int nonceSize) { const int dataLength = 35; @@ -114,6 +116,7 @@ public static void InvalidTagSize(int tagSize) [Theory] [MemberData(nameof(GetValidTagSizes))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ValidTagSize(int tagSize) { const int dataLength = 35; @@ -136,6 +139,7 @@ public static void ValidTagSize(int tagSize) } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void TwoEncryptionsAndDecryptionsUsingOneInstance() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -263,6 +267,7 @@ public static void EncryptDecryptNullTag() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InplaceEncryptDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -283,6 +288,7 @@ public static void InplaceEncryptDecrypt() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InplaceEncryptTamperTagDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -307,6 +313,7 @@ public static void InplaceEncryptTamperTagDecrypt() [Theory] [MemberData(nameof(GetNistCcmTestCases))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AesCcmNistTests(AEADTest testCase) { using (var aesCcm = new AesCcm(testCase.Key)) @@ -325,6 +332,7 @@ public static void AesCcmNistTests(AEADTest testCase) [Theory] [MemberData(nameof(GetNistCcmTestCases))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AesCcmNistTestsTamperTag(AEADTest testCase) { using (var aesCcm = new AesCcm(testCase.Key)) @@ -347,6 +355,7 @@ public static void AesCcmNistTestsTamperTag(AEADTest testCase) [Theory] [MemberData(nameof(GetNistCcmTestCasesWithNonEmptyPT))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AesCcmNistTestsTamperCiphertext(AEADTest testCase) { using (var aesCcm = new AesCcm(testCase.Key)) diff --git a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs index d95482f2c478d8..95161fe0488461 100644 --- a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs +++ b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs @@ -12,6 +12,7 @@ namespace System.Security.Cryptography.Algorithms.Tests public class AesGcmTests : CommonAEADTests { [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] [MemberData(nameof(EncryptTamperAADDecryptTestInputs))] public static void EncryptTamperAADDecrypt(int dataLength, int additionalDataLength) { @@ -53,6 +54,7 @@ public static void InvalidKeyLength(int keyLength) [Theory] [MemberData(nameof(GetInvalidNonceSizes))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InvalidNonceSize(int nonceSize) { int dataLength = 30; @@ -72,6 +74,7 @@ public static void InvalidNonceSize(int nonceSize) [Theory] [MemberData(nameof(GetValidNonceSizes))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ValidNonceSize(int nonceSize) { const int dataLength = 35; @@ -95,6 +98,7 @@ public static void ValidNonceSize(int nonceSize) [Theory] [MemberData(nameof(GetInvalidTagSizes))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InvalidTagSize(int tagSize) { int dataLength = 30; @@ -114,6 +118,7 @@ public static void InvalidTagSize(int tagSize) [Theory] [MemberData(nameof(GetValidTagSizes))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ValidTagSize(int tagSize) { const int dataLength = 35; @@ -136,6 +141,7 @@ public static void ValidTagSize(int tagSize) } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void TwoEncryptionsAndDecryptionsUsingOneInstance() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -180,6 +186,7 @@ public static void TwoEncryptionsAndDecryptionsUsingOneInstance() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] [MemberData(nameof(PlaintextAndCiphertextSizeDifferTestInputs))] public static void PlaintextAndCiphertextSizeDiffer(int ptLen, int ctLen) { @@ -203,6 +210,7 @@ public static void NullKey() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void EncryptDecryptNullNonce() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -218,6 +226,7 @@ public static void EncryptDecryptNullNonce() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void EncryptDecryptNullPlaintext() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -233,6 +242,7 @@ public static void EncryptDecryptNullPlaintext() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void EncryptDecryptNullCiphertext() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -248,6 +258,7 @@ public static void EncryptDecryptNullCiphertext() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void EncryptDecryptNullTag() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -263,6 +274,7 @@ public static void EncryptDecryptNullTag() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InplaceEncryptDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -283,6 +295,7 @@ public static void InplaceEncryptDecrypt() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InplaceEncryptTamperTagDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -307,6 +320,7 @@ public static void InplaceEncryptTamperTagDecrypt() [Theory] [MemberData(nameof(GetNistGcmTestCases))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AesGcmNistTests(AEADTest testCase) { using (var aesGcm = new AesGcm(testCase.Key)) @@ -325,6 +339,7 @@ public static void AesGcmNistTests(AEADTest testCase) [Theory] [MemberData(nameof(GetNistGcmTestCases))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AesGcmNistTestsTamperTag(AEADTest testCase) { using (var aesGcm = new AesGcm(testCase.Key)) @@ -347,6 +362,7 @@ public static void AesGcmNistTestsTamperTag(AEADTest testCase) [Theory] [MemberData(nameof(GetNistGcmTestCasesWithNonEmptyPT))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AesGcmNistTestsTamperCiphertext(AEADTest testCase) { using (var aesGcm = new AesGcm(testCase.Key)) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index aac722118ac4dd..c4a277586d590a 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -151,8 +151,6 @@ - - From c73da542c0c200ce3a663994052a4706ead93066 Mon Sep 17 00:00:00 2001 From: Tammy Qiu Date: Fri, 30 Apr 2021 17:41:39 -0400 Subject: [PATCH 41/78] [iOS][tvOS] Add System.Console PNSE tests to SkipPlatform --- .../System.Console/tests/CancelKeyPress.cs | 2 +- src/libraries/System.Console/tests/Color.cs | 6 ++-- .../System.Console/tests/ConsoleEncoding.cs | 4 +-- .../System.Console/tests/ReadAndWrite.cs | 6 ++-- src/libraries/System.Console/tests/SetIn.cs | 4 +-- .../System.Console/tests/SyncTextReader.cs | 16 +++++------ .../System.Console/tests/ThreadSafety.cs | 6 ++-- src/libraries/System.Console/tests/Timeout.cs | 6 ++-- .../tests/WindowAndCursorProps.cs | 28 +++++++++---------- 9 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/libraries/System.Console/tests/CancelKeyPress.cs b/src/libraries/System.Console/tests/CancelKeyPress.cs index db1e4e67ab2206..4ce7a8f3fef39b 100644 --- a/src/libraries/System.Console/tests/CancelKeyPress.cs +++ b/src/libraries/System.Console/tests/CancelKeyPress.cs @@ -13,7 +13,7 @@ public partial class CancelKeyPressTests private const int WaitFailTestTimeoutSeconds = 30; [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void CanAddAndRemoveHandler() { ConsoleCancelEventHandler handler = (sender, e) => diff --git a/src/libraries/System.Console/tests/Color.cs b/src/libraries/System.Console/tests/Color.cs index 2cc8c585140928..1ee9e32748dabe 100644 --- a/src/libraries/System.Console/tests/Color.cs +++ b/src/libraries/System.Console/tests/Color.cs @@ -12,7 +12,7 @@ public class Color { [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void InvalidColors() { AssertExtensions.Throws(null, () => Console.BackgroundColor = (ConsoleColor)42); @@ -20,7 +20,7 @@ public static void InvalidColors() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void RoundtrippingColor() { Console.BackgroundColor = Console.BackgroundColor; @@ -49,7 +49,7 @@ public static void BackgroundColor_Throws_PlatformNotSupportedException() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void RedirectedOutputDoesNotUseAnsiSequences() { // Make sure that redirecting to a memory stream causes Console not to write out the ANSI sequences diff --git a/src/libraries/System.Console/tests/ConsoleEncoding.cs b/src/libraries/System.Console/tests/ConsoleEncoding.cs index d52d93c9282201..ce3bfc698501c1 100644 --- a/src/libraries/System.Console/tests/ConsoleEncoding.cs +++ b/src/libraries/System.Console/tests/ConsoleEncoding.cs @@ -22,7 +22,7 @@ public static IEnumerable InputData() [Theory] [MemberData(nameof(InputData))] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void TestEncoding(string inputString) { TextWriter outConsoleStream = Console.Out; @@ -79,7 +79,7 @@ public void TestEncoding(string inputString) } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void TestValidEncodings() { Action check = encoding => diff --git a/src/libraries/System.Console/tests/ReadAndWrite.cs b/src/libraries/System.Console/tests/ReadAndWrite.cs index c4a13b21b644e0..29bb58dfae0b07 100644 --- a/src/libraries/System.Console/tests/ReadAndWrite.cs +++ b/src/libraries/System.Console/tests/ReadAndWrite.cs @@ -258,7 +258,7 @@ private static unsafe void ValidateConsoleEncoding(Encoding encoding) } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static unsafe void OutputEncodingPreamble() { Encoding curEncoding = Console.OutputEncoding; @@ -281,7 +281,7 @@ public static unsafe void OutputEncodingPreamble() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static unsafe void OutputEncoding() { Encoding curEncoding = Console.OutputEncoding; @@ -349,7 +349,7 @@ public static void InputEncoding_Getter_Throws_PlatformNotSupportedException() }; [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void ReadAndReadLine() { TextWriter savedStandardOutput = Console.Out; diff --git a/src/libraries/System.Console/tests/SetIn.cs b/src/libraries/System.Console/tests/SetIn.cs index 46780d62e428e6..111fa7bcc6aa40 100644 --- a/src/libraries/System.Console/tests/SetIn.cs +++ b/src/libraries/System.Console/tests/SetIn.cs @@ -11,7 +11,7 @@ public class SetIn { [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void SetInThrowsOnNull() { TextReader savedIn = Console.In; @@ -26,7 +26,7 @@ public static void SetInThrowsOnNull() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void SetInReadLine() { const string TextStringFormat = "Test {0}"; diff --git a/src/libraries/System.Console/tests/SyncTextReader.cs b/src/libraries/System.Console/tests/SyncTextReader.cs index 3a5c0b5617b17f..147387c78c450c 100644 --- a/src/libraries/System.Console/tests/SyncTextReader.cs +++ b/src/libraries/System.Console/tests/SyncTextReader.cs @@ -78,7 +78,7 @@ private static void Test(string content, Action action) } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadToEnd() { var expected = string.Join(Environment.NewLine, s_testLines); @@ -93,7 +93,7 @@ public void ReadToEnd() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadBlock() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -112,7 +112,7 @@ public void ReadBlock() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void Read() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -131,7 +131,7 @@ public void Read() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void Peek() { const string expected = "ABC"; @@ -145,7 +145,7 @@ public void Peek() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadToEndAsync() { var expected = string.Join(Environment.NewLine, s_testLines); @@ -160,7 +160,7 @@ public void ReadToEndAsync() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadBlockAsync() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -185,7 +185,7 @@ public void ReadBlockAsync() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadAsync() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -210,7 +210,7 @@ public void ReadAsync() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadLineAsync() { var expected = string.Join(Environment.NewLine, s_testLines); diff --git a/src/libraries/System.Console/tests/ThreadSafety.cs b/src/libraries/System.Console/tests/ThreadSafety.cs index ddc074760701e8..778bb958c0a482 100644 --- a/src/libraries/System.Console/tests/ThreadSafety.cs +++ b/src/libraries/System.Console/tests/ThreadSafety.cs @@ -12,7 +12,7 @@ public class ThreadSafety const int NumberOfIterations = 100; [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void OpenStandardXXXCanBeCalledConcurrently() { Parallel.For(0, NumberOfIterations, i => @@ -41,7 +41,7 @@ public static void OpenStandardXXXCanBeCalledConcurrently() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void SetStandardXXXCanBeCalledConcurrently() { TextReader savedStandardInput = Console.In; @@ -84,7 +84,7 @@ public static void SetStandardXXXCanBeCalledConcurrently() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void ReadMayBeCalledConcurrently() { const char TestChar = '+'; diff --git a/src/libraries/System.Console/tests/Timeout.cs b/src/libraries/System.Console/tests/Timeout.cs index f8630073ed55ff..c0d128602bc05e 100644 --- a/src/libraries/System.Console/tests/Timeout.cs +++ b/src/libraries/System.Console/tests/Timeout.cs @@ -11,7 +11,7 @@ public class TimeOut { [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void OpenStandardXXX_WriteTimeOut() { using (Stream standardOut = Console.OpenStandardOutput(), standardIn = Console.OpenStandardInput(), standardError = Console.OpenStandardError()) @@ -27,7 +27,7 @@ public static void OpenStandardXXX_WriteTimeOut() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void OpenStandardXXX_ReadTimeOut() { using (Stream standardOut = Console.OpenStandardOutput(), standardIn = Console.OpenStandardInput(), standardError = Console.OpenStandardError()) @@ -43,7 +43,7 @@ public static void OpenStandardXXX_ReadTimeOut() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void OpenStandardXXX_CanTimeOut() { using (Stream standardOut = Console.OpenStandardOutput(), standardIn = Console.OpenStandardInput(), standardError = Console.OpenStandardError()) diff --git a/src/libraries/System.Console/tests/WindowAndCursorProps.cs b/src/libraries/System.Console/tests/WindowAndCursorProps.cs index 32df8909e11b64..0e1763e84b20bc 100644 --- a/src/libraries/System.Console/tests/WindowAndCursorProps.cs +++ b/src/libraries/System.Console/tests/WindowAndCursorProps.cs @@ -11,7 +11,7 @@ public class WindowAndCursorProps { [Fact] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] // Expected behavior specific to Unix + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] // Expected behavior specific to Unix public static void BufferWidth_GetUnix_ReturnsWindowWidth() { Assert.Equal(Console.WindowWidth, Console.BufferWidth); @@ -25,7 +25,7 @@ public static void BufferWidth_SetUnix_ThrowsPlatformNotSupportedException() } [Fact] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] // Expected behavior specific to Unix + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] // Expected behavior specific to Unix public static void BufferHeight_GetUnix_ReturnsWindowHeight() { Assert.Equal(Console.WindowHeight, Console.BufferHeight); @@ -62,7 +62,7 @@ public static void WindowWidth_SetInvalid_ThrowsArgumentOutOfRangeException(int } [Fact] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] // Expected behavior specific to Unix + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] // Expected behavior specific to Unix public static void WindowWidth_GetUnix_Success() { // Validate that Console.WindowWidth returns some value in a non-redirected o/p. @@ -94,7 +94,7 @@ public static void WindowHeight_SetInvalid_ThrowsArgumentOutOfRangeException(int } [Fact] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] // Expected behavior specific to Unix + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] // Expected behavior specific to Unix public static void WindowHeight_GetUnix_Success() { // Validate that Console.WindowHeight returns some value in a non-redirected o/p. @@ -110,7 +110,7 @@ public static void WindowHeight_SetUnix_ThrowsPlatformNotSupportedException() } [Fact] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] // Expected behavior specific to Unix + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] // Expected behavior specific to Unix public static void LargestWindowWidth_UnixGet_ReturnsExpected() { Helpers.RunInNonRedirectedOutput((data) => Assert.Equal(Console.WindowWidth, Console.LargestWindowWidth)); @@ -118,7 +118,7 @@ public static void LargestWindowWidth_UnixGet_ReturnsExpected() } [Fact] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] // Expected behavior specific to Unix + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] // Expected behavior specific to Unix public static void LargestWindowHeight_UnixGet_ReturnsExpected() { Helpers.RunInNonRedirectedOutput((data) => Assert.Equal(Console.WindowHeight, Console.LargestWindowHeight)); @@ -191,7 +191,7 @@ public static void CursorVisible_GetUnix_ThrowsPlatformNotSupportedException() } [Theory] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] // Expected behavior specific to Unix + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] // Expected behavior specific to Unix [InlineData(true)] [InlineData(false)] public static void CursorVisible_SetUnixRedirected_Nop(bool value) @@ -337,7 +337,7 @@ public static void SetCursorPosition_Throws_PlatformNotSupportedException() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void SetCursorPosition_Invoke_Success() { if (!OperatingSystem.IsWindows() || (!Console.IsInputRedirected && !Console.IsOutputRedirected)) @@ -364,7 +364,7 @@ public void SetCursorPosition_InvalidPosition_ThrowsArgumentOutOfRangeException( } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public static void GetCursorPosition_Invoke_ReturnsExpected() { if (!Console.IsInputRedirected && !Console.IsOutputRedirected) @@ -391,7 +391,7 @@ public static void GetCursorPosition_Invoke_ReturnsExpected() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void CursorLeft_Set_GetReturnsExpected() { if (!Console.IsInputRedirected && !Console.IsOutputRedirected) @@ -413,7 +413,7 @@ public void CursorLeft_Set_GetReturnsExpected() [Theory] [InlineData(-1)] [InlineData(short.MaxValue + 1)] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void CursorLeft_SetInvalid_ThrowsArgumentOutOfRangeException(int value) { if (PlatformDetection.IsWindows && Console.IsOutputRedirected) @@ -434,7 +434,7 @@ public void CursorLeft_Setter_Throws_PlatformNotSupportedException() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void CursorTop_Set_GetReturnsExpected() { if (!Console.IsInputRedirected && !Console.IsOutputRedirected) @@ -456,7 +456,7 @@ public void CursorTop_Set_GetReturnsExpected() [Theory] [InlineData(-1)] [InlineData(short.MaxValue + 1)] - [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void CursorTop_SetInvalid_ThrowsArgumentOutOfRangeException(int value) { if (PlatformDetection.IsWindows & Console.IsOutputRedirected) @@ -505,7 +505,7 @@ public void CursorSize_SetInvalidValue_ThrowsArgumentOutOfRangeException(int val } [Fact] - [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)] + [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS)] public void CursorSize_GetUnix_ReturnsExpected() { Assert.Equal(100, Console.CursorSize); From e023e03c0892d621e1b1c333494b349d01c2109c Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 14:36:50 -0400 Subject: [PATCH 42/78] [iOS][tvOS] Add System.Security.Cryptography RountripEmptyArray flake issue --- .../Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs index 96d9b51372847f..ec03ff8cafef09 100644 --- a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs +++ b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs @@ -338,6 +338,7 @@ private void RsaCryptRoundtrip(RSAEncryptionPadding paddingMode, bool expectSucc [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52199", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RoundtripEmptyArray() { using (RSA rsa = RSAFactory.Create(TestData.RSA2048Params)) From fa253f818f324ef63f7b750af9e8be0c11734531 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 14:37:33 -0400 Subject: [PATCH 43/78] [iOS][tvOS] Add Microsoft.Extensions.Hosting remaining ActiveIssue --- .../tests/UnitTests/HostBuilderTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs index 6bd8eb91826389..732527169898aa 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs @@ -277,6 +277,7 @@ public void HostConfigParametersReadCorrectly() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RelativeContentRootIsResolved() { using (var host = new HostBuilder() From 88e4012f3f19adfb2e04b2451193997a92a2fa2b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 14:38:05 -0400 Subject: [PATCH 44/78] [iOS][tvOS] Add Microsoft.Extensions.Hosting.Unit.Tests SkipOnPlatform --- .../Microsoft.Extensions.Hosting/tests/UnitTests/HostTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostTests.cs b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostTests.cs index 7fe9ceca422bb2..fe0a4145fe3d27 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostTests.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostTests.cs @@ -21,6 +21,7 @@ namespace Microsoft.Extensions.Hosting.Tests public partial class HostTests { [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public async Task StopAsyncWithCancellation() { var builder = new HostBuilder(); From a55f286d80d120f97a26d1da413ba7659aa5a093 Mon Sep 17 00:00:00 2001 From: Tammy Qiu Date: Tue, 4 May 2021 09:35:57 -0400 Subject: [PATCH 45/78] [iOS][tvOS] Update System.Diagnostics.Process ActiveIssue to SkipOnPlatform for PNSE --- .../tests/ProcessStartInfoTests.cs | 3 +-- .../tests/ProcessTests.Unix.cs | 6 +++--- .../tests/ProcessTests.cs | 20 +++++++++---------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs index bf31931d111b74..1caca733e89831 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs @@ -42,7 +42,6 @@ public void TestEnvironmentProperty() // with current environmental variables. IDictionary environment = psi.Environment; - Assert.NotEqual(0, environment.Count); int countItems = environment.Count; @@ -774,7 +773,7 @@ public void Verbs_GetUnix_ReturnsEmpty() [PlatformSpecific(TestPlatforms.AnyUnix)] // Test case is specific to Unix [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + // [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestEnvironmentVariablesPropertyUnix() { ProcessStartInfo psi = new ProcessStartInfo(); diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs index 2a18c3e7fa61de..2ce95e3408a9c2 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs @@ -158,7 +158,7 @@ public void ProcessStart_UseShellExecute_OnUnix_SuccessWhenProgramInstalled(bool [Fact] [SkipOnPlatform(TestPlatforms.OSX, "On OSX, ProcessName returns the script interpreter.")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void ProcessNameMatchesScriptName() { string scriptName = GetTestFileName(); @@ -477,7 +477,7 @@ public void TestBasePriorityOnUnix() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void TestStartOnUnixWithBadPermissions() { string path = GetTestFilePath(); @@ -489,7 +489,7 @@ public void TestStartOnUnixWithBadPermissions() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void TestStartOnUnixWithBadFormat() { string path = GetTestFilePath(); diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs index f914404f479f5d..7858d428649f18 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs @@ -172,21 +172,21 @@ public void TestExited_SynchronizingObject(bool invokeRequired) } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void ProcessStart_TryExitCommandAsFileName_ThrowsWin32Exception() { Assert.Throws(() => Process.Start(new ProcessStartInfo { UseShellExecute = false, FileName = "exit", Arguments = "42" })); } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void ProcessStart_UseShellExecuteFalse_FilenameIsUrl_ThrowsWin32Exception() { Assert.Throws(() => Process.Start(new ProcessStartInfo { UseShellExecute = false, FileName = "https://www.github.com/corefx" })); } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void ProcessStart_TryOpenFolder_UseShellExecuteIsFalse_ThrowsWin32Exception() { Assert.Throws(() => Process.Start(new ProcessStartInfo { UseShellExecute = false, FileName = Path.GetTempPath() })); @@ -276,7 +276,7 @@ public void ProcessStart_UseShellExecute_OnWindows_DoesNotThrow(bool isFolder) nameof(PlatformDetection.IsNotWindowsNanoServer), nameof(PlatformDetection.IsNotWindowsIoTCore))] [ActiveIssue("https://github.com/dotnet/runtime/issues/34685", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [InlineData(true), InlineData(false)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void ProcessStart_UseShellExecute_Executes(bool filenameAsUrl) { string filename = WriteScriptFile(TestDirectory, GetTestFileName(), returnValue: 42); @@ -345,7 +345,7 @@ public void ProcessStart_UseShellExecute_ExecuteOrder() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsServerCore), nameof(PlatformDetection.IsNotWindowsNanoServer), nameof(PlatformDetection.IsNotWindowsIoTCore))] [ActiveIssue("https://github.com/dotnet/runtime/issues/34685", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void ProcessStart_UseShellExecute_WorkingDirectory() { // Create a directory that will ProcessStartInfo.WorkingDirectory @@ -475,7 +475,7 @@ public void HasExited_GetNotStarted_ThrowsInvalidOperationException() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void Kill_NotStarted_ThrowsInvalidOperationException() { var process = new Process(); @@ -548,8 +548,7 @@ public void TestMaxWorkingSet() } [Fact] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "Getting MaxWorkingSet is not supported on OSX and BSD.")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD | TestPlatforms.iOS | TestPlatforms.tvOS, "Getting MaxWorkingSet is not supported on OSX, BSD, iOS, and tvOS.")] public void MaxWorkingSet_GetNotStarted_ThrowsInvalidOperationException() { var process = new Process(); @@ -604,8 +603,7 @@ public void TestMinWorkingSet() } [Fact] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "Getting MinWorkingSet is not supported on OSX and BSD.")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD | TestPlatforms.iOS | TestPlatforms.tvOS, "Getting MinWorkingSet is not supported on OSX, BSD, iOS, and tvOS.")] public void MinWorkingSet_GetNotStarted_ThrowsInvalidOperationException() { var process = new Process(); @@ -1383,7 +1381,7 @@ public void CanBeFinalized() [Theory] [InlineData(false)] [InlineData(true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS, or tvOS.")] public void TestStartWithMissingFile(bool fullPath) { string path = Guid.NewGuid().ToString("N"); From efadd899a61ab1e67df8c7b7ad060c32460b1f08 Mon Sep 17 00:00:00 2001 From: Tammy Qiu Date: Tue, 4 May 2021 13:30:08 -0400 Subject: [PATCH 46/78] [iOS][tvOS] Convert ActiveIssue to SkipOnPlatform for PNSE related test failures --- .../tests/FunctionalTests/NetworkInterfaceBasicTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs index 703da0fb93072a..fb0efad37a178b 100644 --- a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs +++ b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs @@ -282,10 +282,10 @@ public void BasicTest_GetIsNetworkAvailable_Success() [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34690", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "Expected behavior is different on OSX or FreeBSD")] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] [InlineData(false)] [InlineData(true)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50567", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] public async Task NetworkInterface_LoopbackInterfaceIndex_MatchesReceivedPackets(bool ipv6) { using (var client = new Socket(SocketType.Dgram, ProtocolType.Udp)) From 72e5e27fcb720c5554e234c9566296fd8f85eb03 Mon Sep 17 00:00:00 2001 From: Tammy Qiu Date: Tue, 4 May 2021 15:39:11 -0400 Subject: [PATCH 47/78] [iOS][tvOS] Move SkipOnPlatform attribute for System.Console SyncTextReader to class level --- src/libraries/System.Console/tests/SyncTextReader.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/libraries/System.Console/tests/SyncTextReader.cs b/src/libraries/System.Console/tests/SyncTextReader.cs index 147387c78c450c..dd64326275a676 100644 --- a/src/libraries/System.Console/tests/SyncTextReader.cs +++ b/src/libraries/System.Console/tests/SyncTextReader.cs @@ -6,7 +6,7 @@ using System.Text; using Xunit; - +[SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public class SyncTextReader { // NOTE: These tests test the underlying SyncTextReader by @@ -78,7 +78,6 @@ private static void Test(string content, Action action) } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadToEnd() { var expected = string.Join(Environment.NewLine, s_testLines); @@ -93,7 +92,6 @@ public void ReadToEnd() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadBlock() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -112,7 +110,6 @@ public void ReadBlock() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void Read() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -131,7 +128,6 @@ public void Read() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void Peek() { const string expected = "ABC"; @@ -145,7 +141,6 @@ public void Peek() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadToEndAsync() { var expected = string.Join(Environment.NewLine, s_testLines); @@ -160,7 +155,6 @@ public void ReadToEndAsync() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadBlockAsync() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -185,7 +179,6 @@ public void ReadBlockAsync() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadAsync() { var expected = new[] { 'H', 'e', 'l', 'l', 'o' }; @@ -210,7 +203,6 @@ public void ReadAsync() } [Fact] - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] public void ReadLineAsync() { var expected = string.Join(Environment.NewLine, s_testLines); From af9677e8e10bd263caad5b5f7b156715db085d96 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 14:45:52 -0400 Subject: [PATCH 48/78] [iOS][tvOS] Add System.Net.Sockets.Tests PNSE SkipOnPlatform --- .../System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs | 2 +- .../tests/FunctionalTests/ReceiveMessageFrom.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs index 482c0712051d1d..e6f762d8bf826c 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs @@ -86,7 +86,7 @@ public async Task NotBound_Throws_InvalidOperationException() [Theory] [InlineData(false)] [InlineData(true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public async Task ReceiveSent_TCP_Success(bool ipv6) { if (ipv6 && PlatformDetection.IsOSX) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs index 8c22dcaec415a5..bff0ef34b51a18 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs @@ -87,7 +87,7 @@ public async Task NotBound_Throws_InvalidOperationException() [Theory] [InlineData(false)] [InlineData(true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public async Task ReceiveSent_TCP_Success(bool ipv6) { if (ipv6 && PlatformDetection.IsOSX) From 610058db8a05e4dc65a64046fd9517ac760352d5 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 15:12:22 -0400 Subject: [PATCH 49/78] [iOS][tvOS] Add System.Threading.Thread.Tests PNSE SkipOnPlatform --- src/libraries/System.Threading.Thread/tests/ThreadTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Threading.Thread/tests/ThreadTests.cs b/src/libraries/System.Threading.Thread/tests/ThreadTests.cs index b2d021d0d00df1..e41557f1c30f6c 100644 --- a/src/libraries/System.Threading.Thread/tests/ThreadTests.cs +++ b/src/libraries/System.Threading.Thread/tests/ThreadTests.cs @@ -171,7 +171,7 @@ public static IEnumerable ApartmentStateTest_MemberData() [InlineData("DefaultApartmentStateMain.exe", "SetApartmentStateTest")] [ActiveIssue("https://github.com/dotnet/runtime/issues/49568", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public static void ApartmentState_AttributePresent(string appName, string testName) { var psi = new ProcessStartInfo(); From 660a03f867741a1eef3cfd802d7b0e1e759c45de Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 15:13:04 -0400 Subject: [PATCH 50/78] [iOS][tvOS] Add System.Runtime.Extensions.Tests PNSE SkipOnPlatform --- .../System.Runtime.Extensions/tests/System/Environment.Exit.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs b/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs index 9f574d00d03f6f..3c650aece98b2f 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs @@ -42,10 +42,9 @@ public static void ExitCode_Roundtrips(int exitCode) [InlineData(1)] // setting ExitCode and exiting Main [InlineData(2)] // setting ExitCode both from Main and from an Unloading event handler. [InlineData(3)] // using Exit(exitCode) - [SkipOnPlatform(TestPlatforms.Browser, "throws PNSE")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, ortvOS.")] [ActiveIssue("https://github.com/dotnet/runtime/issues/49568", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49868", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ExitCode_VoidMainAppReturnsSetValue(int mode) { int expectedExitCode = 123; From d3fdbe945a3e2cbb4b1b1ad7aa939d2781fbbb56 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 15:33:11 -0400 Subject: [PATCH 51/78] [iOS][tvOS] Add System.Security.Cryptography.Xml.Tests PNSE SkipOnPlatform --- .../System.Security.Cryptography.Xml/tests/DSAKeyValueTest.cs | 4 ++++ .../System.Security.Cryptography.Xml/tests/KeyInfoTest.cs | 3 +++ .../System.Security.Cryptography.Xml/tests/SignedXmlTest.cs | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/DSAKeyValueTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/DSAKeyValueTest.cs index b0c6ebd780eb8b..a26582120fd2a9 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/DSAKeyValueTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/DSAKeyValueTest.cs @@ -51,6 +51,7 @@ public void Ctor_Dsa_Null() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/20575", TestPlatforms.OSX)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void GetXml() { DSAKeyValue dsa = new DSAKeyValue(); @@ -79,6 +80,7 @@ public void GetXml() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/20575", TestPlatforms.OSX)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void GetXml_SameDsa() { using (DSA dsa = DSA.Create()) @@ -90,6 +92,7 @@ public void GetXml_SameDsa() } [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void LoadXml() { const string pValue = "oDZlcdJA1Kf6UeNEIZqm4KDqA6zpX7CmEtAGWi9pgnBhWOUDVEfhswfsvTLR5BCbKfE6KoHvt5Hh8D1RcAko//iZkLZ+gds9y/5Oxape8tu3TUi1BnNPWu8ieXjMtdnpyudKFsCymssJked1rBeRePG23HTVwOV1DpopjRkjBEU="; @@ -129,6 +132,7 @@ public void LoadXml_Null() } [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void ImportDSAKeyValue() { string p = "6zJxhRqpk5yQ7sjFSr6mPepyVwpTAXSmw1oh+5Cn/z1DjFSpW6rC6sTOkE3CMNwWOwIzrpVS3bWep7wo9CaBrOPIIVe+E4sqpPeyM2wr10mQThHEsCQAjnxBhJJindf9amaBhi6sOtVNnyETFWV6yKDptZEm9c3xdl4L7ogEbX8="; diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs index 4951ec10bb04f3..f94deeaf404ee0 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs @@ -69,6 +69,7 @@ public void KeyInfoNode() private static string xmlDSA = "

" + dsaP + "

" + dsaQ + "" + dsaG + "" + dsaY + "
"; [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void DSAKeyValue() { using (DSA key = DSA.Create()) @@ -146,6 +147,7 @@ public void X509Data() } [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void Complex() { KeyInfoName name = new KeyInfoName(); @@ -196,6 +198,7 @@ public void Complex() } [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void ImportKeyNode() { string keyName = "Mono::"; diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs index 600b4747b38d65..f0806f53e59e39 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs @@ -288,6 +288,7 @@ public void AsymmetricRSAMixedCaseAttributesVerifyWindows() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/20575", TestPlatforms.OSX)] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void AsymmetricDSASignature() { SignedXml signedXml = MSDNSample(); @@ -387,6 +388,7 @@ public void AsymmetricRSAVerify() // Using empty constructor // The two other constructors don't seems to apply in verifying signatures [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public void AsymmetricDSAVerify() { string value = "/Vvq6sXEVbtZC8GwNtLQnGOy/VI=BYz/qRGjGsN1yMFPxWa3awUZm1y4I/IxOQroMxkOteRGgk1HIwhRYw==

iglVaZ+LsSL8Y0aDXmFMBwva3xHqIypr3l/LtqBH9ziV2Sh1M4JVasAiKqytWIWt/s/Uk8Ckf2tO2Ww1vsNi1NL+Kg9T7FE52sn380/rF0miwGkZeidzm74OWhykb3J+wCTXaIwOzAWI1yN7FoeoN7wzF12jjlSXAXeqPMlViqk=

u4sowiJMHilNRojtdmIuQY2YnB8=SdnN7d+wn1n+HH4Hr8MIryIRYgcXdbZ5TH7jAnuWc1koqRc1AZfcYAZ6RDf+orx6Lzn055FTFiN+1NHQfGUtXJCWW0zz0FVV1NJux7WRj8vGTldjJ5ef0oCenkpwDjcIxWsZgVobve4GPoyN1sAc1scnkJB59oupibklmF4y72A=XejzS8Z51yfl0zbYnxSYYbHqreSLjNCoGPB/KjM1TOyV5sMjz0StKtGrFWryTWc7EgvFY7kUth4e04VKf9HbK8z/FifHTXj8+Tszbjzw8GfInnBwLN+vJgbpnjtypmiI5Bm2nLiRbfkdAHP+OrKtr/EauM9GQfYuaxm3/Vj8B84=vGwGg9wqwwWP9xsoPoXu6kHArJtadiNKe9azBiUx5Ob883gd5wlKfEcGuKkBmBySGbgwxyOsIBovd9Kk48hF01ymfQzAAuHR0EdJECSsTsTTKVTLQNBU32O+PRbLYpv4E8kt6rNL83JLJCBYsqzn8J6fd2gtEyq6YOqiUSHgPE8=sQ==
This is some text
"; From 5bb9c5825d251df95ba97ba3317dc1304a69d58c Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 3 May 2021 15:33:44 -0400 Subject: [PATCH 52/78] [iOS][tvOS] Add System.Security.Cryptography.Xml.Tests ActiveIssue 51370 --- .../tests/EncryptedXmlTest.cs | 3 +++ .../tests/EncryptedXmlTests.cs | 1 + .../System.Security.Cryptography.Xml/tests/KeyInfoTest.cs | 1 + .../tests/KeyInfoX509DataTest.cs | 5 +++++ .../tests/Samples/SigningVerifyingX509Cert.cs | 1 + .../System.Security.Cryptography.Xml/tests/SignedXmlTest.cs | 6 ++++++ 6 files changed, 17 insertions(+) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs index 79b19f77026d34..e9547b2c6a704c 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs @@ -89,6 +89,7 @@ public void Constructor_XmlDocumentAndEvidence() [Theory] [InlineData("System.Security.Cryptography.Xml.Tests.EncryptedXmlSample1.xml")] [InlineData("System.Security.Cryptography.Xml.Tests.EncryptedXmlSample3.xml")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void RsaDecryption(string resourceName) { XmlDocument doc = new XmlDocument(); @@ -245,6 +246,7 @@ public void Encrypt_DecryptDocument_AES() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Encrypt_X509() { XmlDocument doc = new XmlDocument(); @@ -269,6 +271,7 @@ public void Encrypt_X509() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Encrypt_X509_XmlNull() { using (X509Certificate2 certificate = TestHelpers.GetSampleX509Certificate()) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs index 286c089a237872..281d74a50d2b1a 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs @@ -11,6 +11,7 @@ namespace System.Security.Cryptography.Xml.Tests public static class EncryptedXmlTests { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/49871", TestPlatforms.Android)] public static void DecryptWithCertificate_NotInStore() { const string SecretMessage = "Grilled cheese is tasty"; diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs index f94deeaf404ee0..d9e9136a7c42b3 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs @@ -133,6 +133,7 @@ public void RetrievalMethod() 0xD9,0xB2,0xAB,0x8A,0x12,0xB6,0x30,0x78,0x68,0x11,0x7C,0x0D,0xF1,0x49,0x4D,0xA3,0xFD,0xB2,0xE9,0xFF,0x1D,0xF0,0x91,0xFA,0x54,0x85,0xFF,0x33,0x90,0xE8,0xC1,0xBF,0xA4,0x9B,0xA4,0x62,0x46,0xBD,0x61,0x12,0x59,0x98,0x41,0x89 }; [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void X509Data() { using (X509Certificate x509 = new X509Certificate(cert)) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs index 96b75499b732b0..7fb6da43a7a54c 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs @@ -88,6 +88,7 @@ public void Constructor_X509CertificateByteArray_Null() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Constructor_X509Certificate() { KeyInfoX509Data data1 = new KeyInfoX509Data(); @@ -107,6 +108,7 @@ public void Constructor_X509Certificate() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Constructor_X509Certificate_X509IncludeOption() { KeyInfoX509Data data = new KeyInfoX509Data(new X509Certificate(cert), X509IncludeOption.EndCertOnly); @@ -124,6 +126,7 @@ public void Constructor_X509CertificateNull_X509IncludeOption() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Constructor_X509Certificate_X509IncludeOptionBad() { KeyInfoX509Data data = new KeyInfoX509Data(new X509Certificate(cert), (X509IncludeOption)int.MinValue); @@ -217,6 +220,7 @@ public void AddSubjectName_Null() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void Complex() { KeyInfoX509Data data1 = new KeyInfoX509Data(cert); @@ -279,6 +283,7 @@ public void CRL() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void ImportX509Data() { string simple = "MIIJuTCCCSKgAwIBAgIQIAs1Xs7EsGO33sY0uXA0RDANBgkqhkiG9w0BAQQFADBiMREwDwYDVQQHEwhJbnRlcm5ldDEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xNDAyBgNVBAsTK1ZlcmlTaWduIENsYXNzIDEgQ0EgLSBJbmRpdmlkdWFsIFN1YnNjcmliZXIwHhcNOTYwODIxMDAwMDAwWhcNOTcwODIwMjM1OTU5WjCCAQoxETAPBgNVBAcTCEludGVybmV0MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE0MDIGA1UECxMrVmVyaVNpZ24gQ2xhc3MgMSBDQSAtIEluZGl2aWR1YWwgU3Vic2NyaWJlcjFGMEQGA1UECxM9d3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5L0NQUyBJbmNvcnAuIGJ5IFJlZi4sTElBQi5MVEQoYyk5NjEmMCQGA1UECxMdRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUxFjAUBgNVBAMTDURhdmlkIFQuIEdyYXkxHjAcBgkqhkiG9w0BCQEWD2RhdmlkQGZvcm1hbC5pZTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDFgQei6w+4//j4HO4y/78SNWr5a8i+L/s+rwRRSqzdECmozUBbZh6Y7/JMd/qPhtEhZ5JESsSJyYPPiJ9v4jI1AgMBAAGjggcIMIIHBDAJBgNVHRMEAjAAMIICHwYDVR0DBIICFjCCAhIwggIOMIICCgYLYIZIAYb4RQEHAQEwggH5FoIBp1RoaXMgY2VydGlmaWNhdGUgaW5jb3Jwb3JhdGVzIGJ5IHJlZmVyZW5jZSwgYW5kIGl0cyB1c2UgaXMgc3RyaWN0bHkgc3ViamVjdCB0bywgdGhlIFZlcmlTaWduIENlcnRpZmljYXRpb24gUHJhY3RpY2UgU3RhdGVtZW50IChDUFMpLCBhdmFpbGFibGUgYXQ6IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9DUFM7IGJ5IEUtbWFpbCBhdCBDUFMtcmVxdWVzdHNAdmVyaXNpZ24uY29tOyBvciBieSBtYWlsIGF0IFZlcmlTaWduLCBJbmMuLCAyNTkzIENvYXN0IEF2ZS4sIE1vdW50YWluIFZpZXcsIENBIDk0MDQzIFVTQSBUZWwuICsxICg0MTUpIDk2MS04ODMwIENvcHlyaWdodCAoYykgMTk5NiBWZXJpU2lnbiwgSW5jLiAgQWxsIFJpZ2h0cyBSZXNlcnZlZC4gQ0VSVEFJTiBXQVJSQU5USUVTIERJU0NMQUlNRUQgYW5kIExJQUJJTElUWSBMSU1JVEVELqAOBgxghkgBhvhFAQcBAQGhDgYMYIZIAYb4RQEHAQECMCwwKhYoaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JlcG9zaXRvcnkvQ1BTIDARBglghkgBhvhCAQEEBAMCB4AwNgYJYIZIAYb4QgEIBCkWJ2h0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5L0NQUzCCBIcGCWCGSAGG+EIBDQSCBHgWggR0Q0FVVElPTjogV"; diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs b/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs index c7ea502fbd5c86..539d3a94c853d7 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs @@ -59,6 +59,7 @@ private static bool VerifyXml(string signedXmlText, X509Certificate2 certificate } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void SignedXmlHasCertificateVerifiableSignature() { using (X509Certificate2 x509cert = TestHelpers.GetSampleX509Certificate()) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs index f0806f53e59e39..2e140dc95d4161 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs @@ -641,6 +641,7 @@ public void GetIdElement_Null() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DigestValue_CRLF() { XmlDocument doc = CreateSomeXml("\r\n"); @@ -700,6 +701,7 @@ public void DigestValue_CRLF() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DigestValue_LF() { XmlDocument doc = CreateSomeXml("\n"); @@ -759,6 +761,7 @@ public void DigestValue_LF() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void SignedXML_CRLF_Invalid() { X509Certificate2 cert = new X509Certificate2(_pkcs12, "mono"); @@ -822,6 +825,7 @@ public void SignedXML_CRLF_Invalid() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void SignedXML_CRLF_Valid() { X509Certificate2 cert = new X509Certificate2(_pkcs12, "mono"); @@ -879,6 +883,7 @@ public void SignedXML_CRLF_Valid() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void SignedXML_LF_Valid() { X509Certificate2 cert = new X509Certificate2(_pkcs12, "mono"); @@ -936,6 +941,7 @@ public void SignedXML_LF_Valid() } [Fact] // part of bug #79454 + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] public void MultipleX509Certificates() { XmlDocument doc = null; From 9eb7e60fc07c83d8d4bc750f0ffcb46153d4a510 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 4 May 2021 14:40:32 -0400 Subject: [PATCH 53/78] [iOS][tvOS] System.IO.FileSystem.Tests crashes with process terminated --- src/libraries/tests.proj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index c4a277586d590a..af87fdc8412d91 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -139,6 +139,7 @@ + From 1d422e996ce6a2e597608e5bc6474c6e4e3f2ad2 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 4 May 2021 14:43:46 -0400 Subject: [PATCH 54/78] [iOS][tvOS] Add System.IO.FileSystem.Tests SkipOnPlatform --- .../System.IO.FileSystem/tests/FileStream/LockUnlock.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs index d2f7bf7ec62c15..fd04e3cea6488c 100644 --- a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs +++ b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs @@ -58,7 +58,7 @@ public void LockUnlock_Unsupported_OSX() [InlineData(200, 50, 150)] [InlineData(200, 100, 100)] [InlineData(20, 2000, 1000)] - [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on OSX, iOS, or tvOS.")] public void Lock_Unlock_Successful(long fileLength, long position, long length) { string path = GetTestFilePath(); @@ -75,7 +75,7 @@ public void Lock_Unlock_Successful(long fileLength, long position, long length) [InlineData(FileAccess.Read)] [InlineData(FileAccess.Write)] [InlineData(FileAccess.ReadWrite)] - [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on OSX, iOS, or tvOS.")] public void Lock_Unlock_Successful_AlternateFileAccess(FileAccess fileAccess) { string path = GetTestFilePath(); @@ -89,7 +89,7 @@ public void Lock_Unlock_Successful_AlternateFileAccess(FileAccess fileAccess) [Theory] [InlineData(10, 0, 2, 3, 5)] - [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on OSX, iOS, or tvOS.")] public void NonOverlappingRegions_Success(long fileLength, long firstPosition, long firstLength, long secondPosition, long secondLength) { string path = GetTestFilePath(); From a0ff63eeb61c45f3ca288fe2484858e80b254726 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 4 May 2021 16:16:53 -0400 Subject: [PATCH 55/78] [iOS][tvOS] Add System.IO.FileSystem.Tests ActiveIssue --- .../System/IO/StreamConformanceTests.cs | 24 +++++++++++++++++++ .../tests/Base/FileGetSetAttributes.cs | 1 + .../tests/Directory/CreateDirectory.cs | 1 + .../tests/Directory/Exists.cs | 1 + .../Directory/GetFileSystemEntries_str_str.cs | 1 + .../tests/Directory/GetFiles.cs | 1 + .../System.IO.FileSystem/tests/File/Create.cs | 1 + .../System.IO.FileSystem/tests/File/Exists.cs | 2 ++ src/libraries/tests.proj | 3 --- 9 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs b/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs index edd51b148cf0ff..b76531e3a36cba 100644 --- a/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs +++ b/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs @@ -711,6 +711,7 @@ public abstract class StandaloneStreamConformanceTests : StreamConformanceTests } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ArgumentValidation_ThrowsExpectedException() { await foreach (Stream? stream in GetStreamsForValidation()) @@ -724,6 +725,7 @@ public virtual async Task ArgumentValidation_ThrowsExpectedException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Disposed_ThrowsObjectDisposedException() { await foreach (Stream? stream in GetStreamsForValidation()) @@ -813,6 +815,7 @@ public virtual async Task Read_DataStoredAtDesiredOffset(ReadWriteMode mode) [InlineData(ReadWriteMode.SyncArray)] [InlineData(ReadWriteMode.AsyncArray)] [InlineData(ReadWriteMode.AsyncAPM)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Write_DataReadFromDesiredOffset(ReadWriteMode mode) { using Stream? stream = await CreateReadWriteStream(); @@ -1601,6 +1604,7 @@ protected static bool Bidirectional(StreamPair streams) => streams.Stream2.CanRead && streams.Stream2.CanWrite; [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ArgumentValidation_ThrowsExpectedException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1612,6 +1616,7 @@ public virtual async Task ArgumentValidation_ThrowsExpectedException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Disposed_ThrowsObjectDisposedException() { StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1624,6 +1629,7 @@ public virtual async Task Disposed_ThrowsObjectDisposedException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadWriteAsync_PrecanceledOperations_ThrowsCancellationException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1635,6 +1641,7 @@ public virtual async Task ReadWriteAsync_PrecanceledOperations_ThrowsCancellatio } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadAsync_CancelPendingTask_ThrowsCancellationException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1644,6 +1651,7 @@ public virtual async Task ReadAsync_CancelPendingTask_ThrowsCancellationExceptio } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadAsync_CancelPendingValueTask_ThrowsCancellationException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1653,6 +1661,7 @@ public virtual async Task ReadAsync_CancelPendingValueTask_ThrowsCancellationExc } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadWriteByte_Success() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1721,6 +1730,7 @@ public virtual async Task ReadWrite_Success_Large(ReadWriteMode mode, int writeS [Theory] [MemberData(nameof(ReadWrite_Success_MemberData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadWrite_Success(ReadWriteMode mode, int writeSize, bool startWithFlush) { foreach (CancellationToken nonCanceledToken in new[] { CancellationToken.None, new CancellationTokenSource().Token }) @@ -1778,6 +1788,7 @@ public virtual async Task ReadWrite_Success(ReadWriteMode mode, int writeSize, b [Theory] [MemberData(nameof(AllReadWriteModesAndValue), false)] [MemberData(nameof(AllReadWriteModesAndValue), true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Read_Eof_Returns0(ReadWriteMode mode, bool dataAvailableFirst) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1816,6 +1827,7 @@ public virtual async Task Read_Eof_Returns0(ReadWriteMode mode, bool dataAvailab [InlineData(ReadWriteMode.SyncArray)] [InlineData(ReadWriteMode.AsyncArray)] [InlineData(ReadWriteMode.AsyncAPM)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Read_DataStoredAtDesiredOffset(ReadWriteMode mode) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1845,6 +1857,7 @@ public virtual async Task Read_DataStoredAtDesiredOffset(ReadWriteMode mode) [InlineData(ReadWriteMode.SyncArray)] [InlineData(ReadWriteMode.AsyncArray)] [InlineData(ReadWriteMode.AsyncAPM)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Write_DataReadFromDesiredOffset(ReadWriteMode mode) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1943,6 +1956,7 @@ public static IEnumerable ReadAsync_ContinuesOnCurrentContextIfDesired [Theory] [MemberData(nameof(ReadAsync_ContinuesOnCurrentContextIfDesired_MemberData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadAsync_ContinuesOnCurrentSynchronizationContextIfDesired(bool flowExecutionContext, bool? continueOnCapturedContext) { await default(JumpToThreadPoolAwaiter); // escape xunit sync ctx @@ -2025,6 +2039,7 @@ public virtual async Task ReadAsync_ContinuesOnCurrentSynchronizationContextIfDe [Theory] [MemberData(nameof(ReadAsync_ContinuesOnCurrentContextIfDesired_MemberData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadAsync_ContinuesOnCurrentTaskSchedulerIfDesired(bool flowExecutionContext, bool? continueOnCapturedContext) { await default(JumpToThreadPoolAwaiter); // escape xunit sync ctx @@ -2114,6 +2129,7 @@ await Task.Factory.StartNew(() => [InlineData(ReadWriteMode.AsyncMemory)] [InlineData(ReadWriteMode.SyncAPM)] [InlineData(ReadWriteMode.AsyncAPM)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ZeroByteRead_BlocksUntilDataAvailableOrNops(ReadWriteMode mode) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2176,6 +2192,7 @@ public virtual async Task ZeroByteRead_BlocksUntilDataAvailableOrNops(ReadWriteM [InlineData(ReadWriteMode.AsyncMemory)] [InlineData(ReadWriteMode.SyncAPM)] [InlineData(ReadWriteMode.AsyncAPM)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ZeroByteWrite_OtherDataReceivedSuccessfully(ReadWriteMode mode) { byte[][] buffers = new[] { Array.Empty(), Encoding.UTF8.GetBytes("hello"), Array.Empty(), Encoding.UTF8.GetBytes("world") }; @@ -2229,6 +2246,7 @@ public virtual async Task ZeroByteWrite_OtherDataReceivedSuccessfully(ReadWriteM [Theory] [InlineData(false)] [InlineData(true)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadWrite_CustomMemoryManager_Success(bool useAsync) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2349,6 +2367,7 @@ public virtual async Task CopyToAsync_AllDataCopied_Large(bool useAsync) => [Theory] [MemberData(nameof(CopyToAsync_AllDataCopied_MemberData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task CopyToAsync_AllDataCopied(int byteCount, bool useAsync) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2386,6 +2405,7 @@ await Task.WhenAll(Enumerable.Range(0, 20).Select(_ => Task.Run(async () => } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Timeout_Roundtrips() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2420,6 +2440,7 @@ public virtual async Task Timeout_Roundtrips() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task ReadTimeout_Expires_Throws() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2554,6 +2575,7 @@ public virtual async Task ReadAsync_DuringReadAsync_ThrowsIfUnsupported() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Flush_ValidOnWriteableStreamWithNoData_Success() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2568,6 +2590,7 @@ public virtual async Task Flush_ValidOnWriteableStreamWithNoData_Success() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Flush_ValidOnReadableStream_Success() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2585,6 +2608,7 @@ public virtual async Task Flush_ValidOnReadableStream_Success() [InlineData(0)] [InlineData(1)] [InlineData(2)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public virtual async Task Dispose_ClosesStream(int disposeMode) { if (!CansReturnFalseAfterDispose) diff --git a/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs b/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs index 6e2d5a4a7753c1..85048122c3446b 100644 --- a/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs +++ b/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs @@ -65,6 +65,7 @@ public void SettingInvalidAttributes_Unix(FileAttributes attributes) [Theory] [InlineData(FileAttributes.Hidden)] [PlatformSpecific(TestPlatforms.AnyUnix & ~(TestPlatforms.OSX | TestPlatforms.FreeBSD))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void SettingInvalidAttributes_UnixExceptOSXAndFreeBSD(FileAttributes attributes) { string path = CreateItem(); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs b/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs index 7a69bf3aa28010..17cb4ee9f83941 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs @@ -201,6 +201,7 @@ public void AllowedSymbols() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DirectoryEqualToMaxDirectory_CanBeCreatedAllAtOnce() { DirectoryInfo testDir = Create(GetTestFilePath()); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs b/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs index 067834f9094c45..447add1b6253c3 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs @@ -301,6 +301,7 @@ public void PathWithReservedDeviceNameAsPath_ReturnsFalse(string component) [Theory, MemberData(nameof(UncPathsWithoutShareName))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void UncPathWithoutShareNameAsPath_ReturnsFalse(string component) { Assert.False(Exists(component)); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs b/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs index 45a056691c3d63..0cb1e9b609e812 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs @@ -699,6 +699,7 @@ public void WindowsSearchPatternWhitespace() [Fact] [PlatformSpecific(CaseSensitivePlatforms)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void SearchPatternCaseSensitive() { DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs b/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs index 33bb96aefb1b78..33d385b67d8cc4 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs @@ -42,6 +42,7 @@ public void EnumerateWithSymLinkToFile() } [ConditionalFact(nameof(AreAllLongPathsAvailable))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void EnumerateFilesOverLegacyMaxPath() { // We want to test that directories under the legacy MAX_PATH (260 characters, including the null) can iterate files diff --git a/src/libraries/System.IO.FileSystem/tests/File/Create.cs b/src/libraries/System.IO.FileSystem/tests/File/Create.cs index d89fcd26a5b9c2..45207b1d2e3395 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/Create.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/Create.cs @@ -188,6 +188,7 @@ public void LongFileName() [Fact] [PlatformSpecific(CaseSensitivePlatforms)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void CaseSensitive() { DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); diff --git a/src/libraries/System.IO.FileSystem/tests/File/Exists.cs b/src/libraries/System.IO.FileSystem/tests/File/Exists.cs index 4f0ca2af03a6fb..f936047164c9a5 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/Exists.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/Exists.cs @@ -112,6 +112,7 @@ public void PathAlreadyExistsAsDirectory() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void DirectoryLongerThanMaxDirectoryAsPath_DoesntThrow() { Assert.All((IOInputs.GetPathsLongerThanMaxDirectory(GetTestFilePath())), (path) => @@ -232,6 +233,7 @@ public void PathWithReservedDeviceNameAsPath_ReturnsFalse(string component) [Theory, MemberData(nameof(UncPathsWithoutShareName))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] public void UncPathWithoutShareNameAsPath_ReturnsFalse(string component) { Assert.False(Exists(component)); diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index af87fdc8412d91..a801f2ad194da0 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -138,9 +138,6 @@ - - - From 580308d74626affb3882ce0cbb11be4c6da5cf31 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 5 May 2021 09:49:57 -0400 Subject: [PATCH 56/78] [iOS][tvOS] Update test suites skipped due to PNSE --- src/libraries/tests.proj | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index a801f2ad194da0..8823905d406f7b 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -136,13 +136,11 @@ - - - - + + @@ -151,8 +149,6 @@ - - From e7a4d5df3e70f1eb261a5103de8afed3832e4a5d Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 5 May 2021 09:58:13 -0400 Subject: [PATCH 57/78] [iOS][tvOS] Remove Microsoft.Extensions.HostFactoryResolver and System.Net.NameResolution.Unit test suite skips --- src/libraries/tests.proj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 8823905d406f7b..9385349a58485c 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -157,10 +157,6 @@ - - - - From 5f65e1842fb947c25c710ca248afd51b3acdcb5b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 5 May 2021 16:45:26 -0400 Subject: [PATCH 58/78] [iOS][tvOS] Reenable System.Diagnostics.Process.Tests ActiveIssue and fix typo --- .../System.Diagnostics.Process/tests/ProcessStartInfoTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs index 1caca733e89831..364b85d6dbb062 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs @@ -31,7 +31,7 @@ private static bool IsAdmin_IsNotNano_RemoteExecutorIsSupported => PlatformDetection.IsWindowsAndElevated && PlatformDetection.IsNotWindowsNanoServer && RemoteExecutor.IsSupported; [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51384", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestEnvironmentProperty() { Assert.NotEqual(0, new Process().StartInfo.Environment.Count); @@ -773,7 +773,7 @@ public void Verbs_GetUnix_ReturnsEmpty() [PlatformSpecific(TestPlatforms.AnyUnix)] // Test case is specific to Unix [Fact] - // [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] public void TestEnvironmentVariablesPropertyUnix() { ProcessStartInfo psi = new ProcessStartInfo(); From 5c4837095da94dc96d6f52d665ab4c452f8678a3 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Thu, 6 May 2021 11:48:20 -0400 Subject: [PATCH 59/78] [tvOS] Skip tvOS.Simulator.Aot.Test due to linking issue --- src/libraries/tests.proj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 9385349a58485c..fcf1b694cb0e7d 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -163,6 +163,11 @@ + + + + + From 3f044b99d09f1dfc4e1d2d0b72765bac4a07a09b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 7 May 2021 12:33:55 -0400 Subject: [PATCH 60/78] [iOS][tvOS] Skip ipv6 System.Net.Sockets.Tests PNSE --- .../System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs | 3 +-- .../tests/FunctionalTests/ReceiveMessageFrom.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs index e6f762d8bf826c..7bd01782fe9fb8 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs @@ -86,10 +86,9 @@ public async Task NotBound_Throws_InvalidOperationException() [Theory] [InlineData(false)] [InlineData(true)] - [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public async Task ReceiveSent_TCP_Success(bool ipv6) { - if (ipv6 && PlatformDetection.IsOSX) + if (ipv6 && PlatformDetection.IsOSXLike) { // [ActiveIssue("https://github.com/dotnet/runtime/issues/47335")] // accept() will create a (seemingly) DualMode socket on Mac, diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs index bff0ef34b51a18..78dcf281d135fe 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs @@ -87,10 +87,9 @@ public async Task NotBound_Throws_InvalidOperationException() [Theory] [InlineData(false)] [InlineData(true)] - [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")] public async Task ReceiveSent_TCP_Success(bool ipv6) { - if (ipv6 && PlatformDetection.IsOSX) + if (ipv6 && PlatformDetection.IsOSXLike) { // [ActiveIssue("https://github.com/dotnet/runtime/issues/47335")] // accept() will create a (seemingly) DualMode socket on Mac, From 9a3155acfa4323c422a44ca2b1103946db334dba Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 7 May 2021 12:58:07 -0400 Subject: [PATCH 61/78] [iOS][tvOS] Update System.Threading.Thread.Tests PNSE SkipOnPlatform This reverts commit 163ff12da16e602e52830c79f267e14c420284c0. --- .../System.Threading.Thread/tests/ThreadTests.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libraries/System.Threading.Thread/tests/ThreadTests.cs b/src/libraries/System.Threading.Thread/tests/ThreadTests.cs index e41557f1c30f6c..e89935d78777dd 100644 --- a/src/libraries/System.Threading.Thread/tests/ThreadTests.cs +++ b/src/libraries/System.Threading.Thread/tests/ThreadTests.cs @@ -579,7 +579,6 @@ public static void IsBackgroundTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void IsThreadPoolThreadTest() { var isThreadPoolThread = false; @@ -605,7 +604,6 @@ public static void IsThreadPoolThreadTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ManagedThreadIdTest() { var e = new ManualResetEvent(false); @@ -677,7 +675,6 @@ public static void ThreadNameDoesNotAffectProcessName() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void PriorityTest() { var e = new ManualResetEvent(false); @@ -697,7 +694,6 @@ public static void PriorityTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void ThreadStateTest() { var e0 = new ManualResetEvent(false); @@ -736,7 +732,6 @@ public static void ThreadStateTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void AbortSuspendTest() { var e = new ManualResetEvent(false); @@ -928,7 +923,6 @@ public static void LocalDataSlotTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49521", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InterruptTest() { // Interrupting a thread that is not blocked does not do anything, but once the thread starts blocking, it gets @@ -979,7 +973,6 @@ public static void InterruptTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49521", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void InterruptInFinallyBlockTest_SkipOnDesktopFramework() { // A wait in a finally block can be interrupted. The .NET Framework applies the same rules as thread abort, and @@ -1006,7 +999,6 @@ public static void InterruptInFinallyBlockTest_SkipOnDesktopFramework() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void JoinTest() { var threadReady = new ManualResetEvent(false); @@ -1059,7 +1051,6 @@ public static void SleepTest() [InlineData(false)] [InlineData(true)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50577", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/38032", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void StartTest(bool useUnsafeStart) { void Start(Thread t) From 662e4cda03ff86f8a02c47a80d4a9a41f268541b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 7 May 2021 13:36:55 -0400 Subject: [PATCH 62/78] [iOS][tvOS] Add System.Runtime.Extensions.Tests UserName_Valid ActiveIssue --- .../tests/System/Environment.UserName.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Runtime.Extensions/tests/System/Environment.UserName.cs b/src/libraries/System.Runtime.Extensions/tests/System/Environment.UserName.cs index 2157f63c0250a0..adc427746ee289 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/Environment.UserName.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/Environment.UserName.cs @@ -22,6 +22,7 @@ public void UserNameIsCorrect() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] public void UserName_Valid() { string name = Environment.UserName; From 093db845a4e1e09e6a7082a833947b9e3b00b35f Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 7 May 2021 14:50:07 -0400 Subject: [PATCH 63/78] [iOS][tvOS][Catalyst] Update System.IO.FileSystem SkipOnPlatform --- .../tests/FileStream/LockUnlock.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs index fd04e3cea6488c..aecce2e6a6ecd9 100644 --- a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs +++ b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs @@ -38,7 +38,7 @@ public void FileClosed_Throws() } [Fact] - [PlatformSpecific(TestPlatforms.OSX)] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void LockUnlock_Unsupported_OSX() { string path = GetTestFilePath(); @@ -58,7 +58,7 @@ public void LockUnlock_Unsupported_OSX() [InlineData(200, 50, 150)] [InlineData(200, 100, 100)] [InlineData(20, 2000, 1000)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on OSX, iOS, or tvOS.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void Lock_Unlock_Successful(long fileLength, long position, long length) { string path = GetTestFilePath(); @@ -75,7 +75,7 @@ public void Lock_Unlock_Successful(long fileLength, long position, long length) [InlineData(FileAccess.Read)] [InlineData(FileAccess.Write)] [InlineData(FileAccess.ReadWrite)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on OSX, iOS, or tvOS.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void Lock_Unlock_Successful_AlternateFileAccess(FileAccess fileAccess) { string path = GetTestFilePath(); @@ -89,7 +89,7 @@ public void Lock_Unlock_Successful_AlternateFileAccess(FileAccess fileAccess) [Theory] [InlineData(10, 0, 2, 3, 5)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on OSX, iOS, or tvOS.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void NonOverlappingRegions_Success(long fileLength, long firstPosition, long firstLength, long secondPosition, long secondLength) { string path = GetTestFilePath(); @@ -176,7 +176,7 @@ public void OverlappingRegionsFromSameProcess_AllowedOnUnix(long fileLength, lon [InlineData(10, 3, 5, 2, 6)] [InlineData(10, 3, 5, 2, 4)] [InlineData(10, 3, 5, 4, 6)] - [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void OverlappingRegionsFromOtherProcess_ThrowsException(long fileLength, long firstPosition, long firstLength, long secondPosition, long secondLength) { string path = GetTestFilePath(); @@ -231,7 +231,7 @@ public void OverlappingRegionsFromOtherProcess_With_ReadLock_AllowedOnLinux() [InlineData(FileAccess.Read)] [InlineData(FileAccess.Write)] [InlineData(FileAccess.ReadWrite)] - [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void OverlappingRegionsFromOtherProcess_With_WriteLock_ThrowsException(FileAccess fileAccess) { string path = GetTestFilePath(); From 80fcf6950fa7bcd73f84abf83ecc615a6dafb839 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 7 May 2021 15:00:46 -0400 Subject: [PATCH 64/78] [iOS][tvOS] Remove System.Xml.XmlSchemaSet.Tests test proj skip --- src/libraries/tests.proj | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index fcf1b694cb0e7d..947e5d75f68177 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -151,8 +151,6 @@ - - From acac640dd953f05fd028e892517d94339ad22e57 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 7 May 2021 15:09:41 -0400 Subject: [PATCH 65/78] [iOS][tvOS] Remove System.IO.Compression.Tests test proj skip --- src/libraries/tests.proj | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 947e5d75f68177..7b9a46238517fd 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -143,8 +143,6 @@ - - From efe09f4a3965c07acab56c29abb2b309beaf333f Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 7 May 2021 16:30:46 -0400 Subject: [PATCH 66/78] [MacCatalyst] Amend all iOS tvOS ActiveIssues to include MacCatalyst --- .../System/IO/StreamConformanceTests.cs | 48 +++++++++---------- .../CompressionStreamUnitTestBase.cs | 20 ++++---- .../ECDsa/ECDsaTests.netcoreapp.cs | 2 +- .../RSA/EncryptDecrypt.cs | 2 +- .../Common/tests/Tests/System/StringTests.cs | 2 +- .../tests/UnitTests/HostBuilderTests.cs | 2 +- .../tests/UnitTests/Internal/HostTests.cs | 2 +- .../OptionsBuilderExtensionsTests.cs | 20 ++++---- .../SimpleConsoleFormatterTests.cs | 2 +- .../tests/InteractionTests.cs | 2 +- .../VisualBasic/FileIO/FileSystemTests.cs | 4 +- .../tests/ImmutableArrayTest.cs | 2 +- .../System.Console/tests/TermInfo.cs | 8 ++-- .../Data/Common/DbProviderFactoriesTests.cs | 24 +++++----- .../tests/DebugTestsNoListeners.cs | 4 +- .../tests/DebugTestsUsingListeners.cs | 4 +- .../TestWithConfigSwitches/ActivityTests.cs | 2 +- .../tests/ProcessStartInfoTests.cs | 4 +- .../tests/StackTraceSymbolsTests.cs | 2 +- .../TestsManifestNegative.cs | 2 +- .../tests/BasicEventSourceTest/TestsTraits.cs | 4 +- .../BasicEventSourceTest/TestsUserErrors.cs | 2 +- .../tests/BasicEventSourceTest/TestsWrite.cs | 4 +- .../TestsWriteEventToListener.cs | 14 +++--- .../tests/BrotliGoogleTestData.cs | 4 +- .../CompressionStreamUnitTests.Brotli.cs | 6 +-- .../tests/FileSystemWatcher.Directory.Move.cs | 2 +- .../tests/FileSystemWatcher.File.Move.cs | 2 +- .../tests/Base/FileGetSetAttributes.cs | 2 +- .../tests/Directory/CreateDirectory.cs | 2 +- .../tests/Directory/Exists.cs | 2 +- .../Directory/GetFileSystemEntries_str_str.cs | 2 +- .../tests/Directory/GetFiles.cs | 2 +- .../System.IO.FileSystem/tests/File/Create.cs | 2 +- .../System.IO.FileSystem/tests/File/Exists.cs | 4 +- .../tests/FileStream/LockUnlock.cs | 12 ++--- .../MemoryMappedFile.CreateFromFile.Tests.cs | 8 ++-- .../tests/MemoryMappedFile.CreateNew.Tests.cs | 2 +- .../tests/MemoryMappedViewAccessor.Tests.cs | 2 +- .../tests/MemoryMappedViewStream.Tests.cs | 2 +- .../tests/StreamReader/StreamReaderTests.cs | 2 +- .../FunctionalTests/GetHostByNameTest.cs | 4 +- .../tests/FunctionalTests/GetHostEntryTest.cs | 4 +- .../FunctionalTests/IPGlobalPropertiesTest.cs | 6 +-- .../NetworkInterfaceBasicTest.cs | 2 +- .../FunctionalTests/CreateSocketTests.cs | 8 ++-- .../FunctionalTests/DualModeSocketTest.cs | 2 +- .../tests/FunctionalTests/ReceiveFrom.cs | 2 +- .../FunctionalTests/ReceiveMessageFrom.cs | 2 +- .../tests/FunctionalTests/SelectTest.cs | 6 +-- .../SendReceive/SendReceive.cs | 4 +- .../FunctionalTests/SocketOptionNameTest.cs | 6 +-- .../tests/FunctionalTests/TcpListenerTest.cs | 2 +- .../tests/FunctionalTests/UdpClientTest.cs | 2 +- .../FunctionalTests/UnixDomainSocketTest.cs | 18 +++---- .../Tests/AsyncReaderLateInitTests.cs | 6 +-- .../System.Reflection/tests/AssemblyTests.cs | 4 +- .../tests/ResourceManagerTests.cs | 4 +- .../tests/System/AppDomainTests.cs | 6 +-- .../tests/System/EnvironmentTests.cs | 4 +- .../tests/System/ActivatorTests.cs | 6 +-- .../tests/System/Reflection/ModuleTests.cs | 2 +- .../tests/System/TimeZoneInfoTests.cs | 10 ++-- .../tests/System/Type/TypeTests.cs | 6 +-- .../tests/AesCcmTests.cs | 18 +++---- .../tests/AesGcmTests.cs | 32 ++++++------- .../tests/DSACryptoServiceProviderTests.cs | 2 +- .../tests/Oid.cs | 4 +- .../tests/EncryptedXmlTest.cs | 6 +-- .../tests/EncryptedXmlTests.cs | 1 + .../tests/KeyInfoTest.cs | 2 +- .../tests/KeyInfoX509DataTest.cs | 10 ++-- .../tests/Samples/SigningVerifyingX509Cert.cs | 2 +- .../tests/SignedXmlTest.cs | 12 ++--- .../tests/Encoding/Encoding.cs | 4 +- .../Encoding/EncodingGetEncodingTests.cs | 6 +-- .../tests/UTF7Encoding/UTF7EncodingEncode.cs | 2 +- .../tests/UTF7Encoding/UTF7EncodingTests.cs | 12 ++--- .../tests/Regex.Groups.Tests.cs | 2 +- .../tests/AutoResetEventTests.cs | 2 +- .../tests/ExecutionContextTests.cs | 4 +- .../tests/ManualResetEventTests.cs | 2 +- .../tests/ReaderWriterLockTests.cs | 14 +++--- .../System.Threading/tests/SemaphoreTests.cs | 2 +- 84 files changed, 248 insertions(+), 247 deletions(-) diff --git a/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs b/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs index b76531e3a36cba..d41e07217ee335 100644 --- a/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs +++ b/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs @@ -711,7 +711,7 @@ public abstract class StandaloneStreamConformanceTests : StreamConformanceTests } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ArgumentValidation_ThrowsExpectedException() { await foreach (Stream? stream in GetStreamsForValidation()) @@ -725,7 +725,7 @@ public virtual async Task ArgumentValidation_ThrowsExpectedException() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Disposed_ThrowsObjectDisposedException() { await foreach (Stream? stream in GetStreamsForValidation()) @@ -815,7 +815,7 @@ public virtual async Task Read_DataStoredAtDesiredOffset(ReadWriteMode mode) [InlineData(ReadWriteMode.SyncArray)] [InlineData(ReadWriteMode.AsyncArray)] [InlineData(ReadWriteMode.AsyncAPM)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Write_DataReadFromDesiredOffset(ReadWriteMode mode) { using Stream? stream = await CreateReadWriteStream(); @@ -1604,7 +1604,7 @@ protected static bool Bidirectional(StreamPair streams) => streams.Stream2.CanRead && streams.Stream2.CanWrite; [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ArgumentValidation_ThrowsExpectedException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1616,7 +1616,7 @@ public virtual async Task ArgumentValidation_ThrowsExpectedException() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Disposed_ThrowsObjectDisposedException() { StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1629,7 +1629,7 @@ public virtual async Task Disposed_ThrowsObjectDisposedException() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadWriteAsync_PrecanceledOperations_ThrowsCancellationException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1641,7 +1641,7 @@ public virtual async Task ReadWriteAsync_PrecanceledOperations_ThrowsCancellatio } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadAsync_CancelPendingTask_ThrowsCancellationException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1651,7 +1651,7 @@ public virtual async Task ReadAsync_CancelPendingTask_ThrowsCancellationExceptio } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadAsync_CancelPendingValueTask_ThrowsCancellationException() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1661,7 +1661,7 @@ public virtual async Task ReadAsync_CancelPendingValueTask_ThrowsCancellationExc } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadWriteByte_Success() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1730,7 +1730,7 @@ public virtual async Task ReadWrite_Success_Large(ReadWriteMode mode, int writeS [Theory] [MemberData(nameof(ReadWrite_Success_MemberData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadWrite_Success(ReadWriteMode mode, int writeSize, bool startWithFlush) { foreach (CancellationToken nonCanceledToken in new[] { CancellationToken.None, new CancellationTokenSource().Token }) @@ -1788,7 +1788,7 @@ public virtual async Task ReadWrite_Success(ReadWriteMode mode, int writeSize, b [Theory] [MemberData(nameof(AllReadWriteModesAndValue), false)] [MemberData(nameof(AllReadWriteModesAndValue), true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Read_Eof_Returns0(ReadWriteMode mode, bool dataAvailableFirst) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1827,7 +1827,7 @@ public virtual async Task Read_Eof_Returns0(ReadWriteMode mode, bool dataAvailab [InlineData(ReadWriteMode.SyncArray)] [InlineData(ReadWriteMode.AsyncArray)] [InlineData(ReadWriteMode.AsyncAPM)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Read_DataStoredAtDesiredOffset(ReadWriteMode mode) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1857,7 +1857,7 @@ public virtual async Task Read_DataStoredAtDesiredOffset(ReadWriteMode mode) [InlineData(ReadWriteMode.SyncArray)] [InlineData(ReadWriteMode.AsyncArray)] [InlineData(ReadWriteMode.AsyncAPM)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Write_DataReadFromDesiredOffset(ReadWriteMode mode) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -1956,7 +1956,7 @@ public static IEnumerable ReadAsync_ContinuesOnCurrentContextIfDesired [Theory] [MemberData(nameof(ReadAsync_ContinuesOnCurrentContextIfDesired_MemberData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadAsync_ContinuesOnCurrentSynchronizationContextIfDesired(bool flowExecutionContext, bool? continueOnCapturedContext) { await default(JumpToThreadPoolAwaiter); // escape xunit sync ctx @@ -2039,7 +2039,7 @@ public virtual async Task ReadAsync_ContinuesOnCurrentSynchronizationContextIfDe [Theory] [MemberData(nameof(ReadAsync_ContinuesOnCurrentContextIfDesired_MemberData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadAsync_ContinuesOnCurrentTaskSchedulerIfDesired(bool flowExecutionContext, bool? continueOnCapturedContext) { await default(JumpToThreadPoolAwaiter); // escape xunit sync ctx @@ -2129,7 +2129,7 @@ await Task.Factory.StartNew(() => [InlineData(ReadWriteMode.AsyncMemory)] [InlineData(ReadWriteMode.SyncAPM)] [InlineData(ReadWriteMode.AsyncAPM)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ZeroByteRead_BlocksUntilDataAvailableOrNops(ReadWriteMode mode) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2192,7 +2192,7 @@ public virtual async Task ZeroByteRead_BlocksUntilDataAvailableOrNops(ReadWriteM [InlineData(ReadWriteMode.AsyncMemory)] [InlineData(ReadWriteMode.SyncAPM)] [InlineData(ReadWriteMode.AsyncAPM)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ZeroByteWrite_OtherDataReceivedSuccessfully(ReadWriteMode mode) { byte[][] buffers = new[] { Array.Empty(), Encoding.UTF8.GetBytes("hello"), Array.Empty(), Encoding.UTF8.GetBytes("world") }; @@ -2246,7 +2246,7 @@ public virtual async Task ZeroByteWrite_OtherDataReceivedSuccessfully(ReadWriteM [Theory] [InlineData(false)] [InlineData(true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadWrite_CustomMemoryManager_Success(bool useAsync) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2367,7 +2367,7 @@ public virtual async Task CopyToAsync_AllDataCopied_Large(bool useAsync) => [Theory] [MemberData(nameof(CopyToAsync_AllDataCopied_MemberData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task CopyToAsync_AllDataCopied(int byteCount, bool useAsync) { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2405,7 +2405,7 @@ await Task.WhenAll(Enumerable.Range(0, 20).Select(_ => Task.Run(async () => } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Timeout_Roundtrips() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2440,7 +2440,7 @@ public virtual async Task Timeout_Roundtrips() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task ReadTimeout_Expires_Throws() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2575,7 +2575,7 @@ public virtual async Task ReadAsync_DuringReadAsync_ThrowsIfUnsupported() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Flush_ValidOnWriteableStreamWithNoData_Success() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2590,7 +2590,7 @@ public virtual async Task Flush_ValidOnWriteableStreamWithNoData_Success() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Flush_ValidOnReadableStream_Success() { using StreamPair streams = await CreateConnectedStreamsAsync(); @@ -2608,7 +2608,7 @@ public virtual async Task Flush_ValidOnReadableStream_Success() [InlineData(0)] [InlineData(1)] [InlineData(2)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Dispose_ClosesStream(int disposeMode) { if (!CansReturnFalseAfterDispose) diff --git a/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs b/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs index 101264d044f92d..407d1ee24d7396 100644 --- a/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs +++ b/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs @@ -48,7 +48,7 @@ public virtual void FlushAsync_DuringWriteAsync() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task FlushAsync_DuringReadAsync() { byte[] buffer = new byte[32]; @@ -77,7 +77,7 @@ public async Task FlushAsync_DuringReadAsync() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task FlushAsync_DuringFlushAsync() { byte[] buffer = null; @@ -120,7 +120,7 @@ public async Task FlushAsync_DuringFlushAsync() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public virtual async Task Dispose_WithUnfinishedReadAsync() { string compressedPath = CompressedTestFile(UncompressedTestFile()); @@ -140,7 +140,7 @@ public virtual async Task Dispose_WithUnfinishedReadAsync() [Theory] [MemberData(nameof(UncompressedTestFiles))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Read(string testFile) { var uncompressedStream = await LocalMemoryStream.readAppFileAsync(testFile); @@ -177,7 +177,7 @@ public async Task Read(string testFile) [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Read_EndOfStreamPosition() { var compressedStream = await LocalMemoryStream.readAppFileAsync(CompressedTestFile(UncompressedTestFile())); @@ -198,7 +198,7 @@ public async Task Read_EndOfStreamPosition() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Read_BaseStreamSlowly() { string testFile = UncompressedTestFile(); @@ -334,7 +334,7 @@ IEnumerable> CtorFunctions() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task TestLeaveOpenAfterValidDecompress() { //Create the Stream @@ -410,7 +410,7 @@ public void BaseStreamTest(CompressionMode mode) [InlineData(CompressionMode.Compress)] [InlineData(CompressionMode.Decompress)] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task BaseStream_Modify(CompressionMode mode) { using (var baseStream = await LocalMemoryStream.readAppFileAsync(CompressedTestFile(UncompressedTestFile()))) @@ -443,7 +443,7 @@ public void BaseStream_NullAfterDisposeWithFalseLeaveOpen(CompressionMode mode) [InlineData(CompressionMode.Compress)] [InlineData(CompressionMode.Decompress)] [ActiveIssue("https://github.com/dotnet/runtime/issues/36845", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode mode) { var ms = await LocalMemoryStream.readAppFileAsync(CompressedTestFile(UncompressedTestFile())); @@ -462,7 +462,7 @@ public async Task BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode [Theory] [MemberData(nameof(UncompressedTestFiles))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task CompressionLevel_SizeInOrder(string testFile) { using var uncompressedStream = await LocalMemoryStream.readAppFileAsync(testFile); diff --git a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs index 5d850858d6c4fe..e2040d47888d3d 100644 --- a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs +++ b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaTests.netcoreapp.cs @@ -80,7 +80,7 @@ public void KeySizeProp() } [Theory, MemberData(nameof(TestNewCurves))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TestRegenKeyExplicit(CurveDef curveDef) { ECParameters param, param2; diff --git a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs index ec03ff8cafef09..80fbbace5b58a9 100644 --- a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs +++ b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs @@ -338,7 +338,7 @@ private void RsaCryptRoundtrip(RSAEncryptionPadding paddingMode, bool expectSucc [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52199", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52199", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RoundtripEmptyArray() { using (RSA rsa = RSAFactory.Create(TestData.RSA2048Params)) diff --git a/src/libraries/Common/tests/Tests/System/StringTests.cs b/src/libraries/Common/tests/Tests/System/StringTests.cs index ae9cec8b63c788..b3ab3defdb967d 100644 --- a/src/libraries/Common/tests/Tests/System/StringTests.cs +++ b/src/libraries/Common/tests/Tests/System/StringTests.cs @@ -7300,7 +7300,7 @@ public static void InternalTestAotSubset() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))] [ActiveIssue("https://github.com/dotnet/runtime/issues/34577", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static unsafe void NormalizationTest() // basic test; more tests in globalization tests { // U+0063 LATIN SMALL LETTER C diff --git a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs index 732527169898aa..a07be287a3b95d 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs @@ -277,7 +277,7 @@ public void HostConfigParametersReadCorrectly() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RelativeContentRootIsResolved() { using (var host = new HostBuilder() diff --git a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs index 90ea3ddea8aaef..989ea8c1caf46f 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Internal/HostTests.cs @@ -19,7 +19,7 @@ namespace Microsoft.Extensions.Hosting.Internal { - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public class HostTests { [Fact] diff --git a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs index 2dc9b1ba2f01bb..5155fa46fa9ef4 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/OptionsBuilderExtensionsTests.cs @@ -26,7 +26,7 @@ public void ValidateOnStart_NullOptionsBuilder_Throws() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ValidateOnStart_ConfigureAndValidateThenCallValidateOnStart_ValidatesFailure() { var hostBuilder = CreateHostBuilder(services => @@ -50,7 +50,7 @@ public async Task ValidateOnStart_ConfigureAndValidateThenCallValidateOnStart_Va [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ValidateOnStart_CallFirstThenConfigureAndValidate_ValidatesFailure() { var hostBuilder = CreateHostBuilder(services => @@ -74,7 +74,7 @@ public async Task ValidateOnStart_CallFirstThenConfigureAndValidate_ValidatesFai [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ValidateOnStart_ErrorMessageSpecified_FailsWithCustomError() { var hostBuilder = CreateHostBuilder(services => @@ -105,7 +105,7 @@ internal class FakeSettings [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ValidateOnStart_NamedOptions_ValidatesFailureOnStart() { var hostBuilder = CreateHostBuilder(services => @@ -134,7 +134,7 @@ public async Task ValidateOnStart_NamedOptions_ValidatesFailureOnStart() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] private async Task ValidateOnStart_AddOptionsMultipleTimesForSameType_LastOneGetsTriggered() { bool firstOptionsBuilderTriggered = false; @@ -181,7 +181,7 @@ private async Task ValidateOnStart_AddOptionsMultipleTimesForSameType_LastOneGet [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] private async Task ValidateOnStart_AddEagerValidation_DoesValidationWhenHostStartsWithNoFailure() { bool validateCalled = false; @@ -209,7 +209,7 @@ private async Task ValidateOnStart_AddEagerValidation_DoesValidationWhenHostStar [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] private async Task ValidateOnStart_AddLazyValidation_SkipsValidationWhenHostStarts() { bool validateCalled = false; @@ -243,7 +243,7 @@ private async Task ValidateOnStart_AddLazyValidation_SkipsValidationWhenHostStar [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ValidateOnStart_AddBothLazyAndEagerValidationOnDifferentTypes_ValidatesWhenHostStartsOnlyForEagerValidations() { bool validateCalledForNested = false; @@ -287,7 +287,7 @@ public async Task ValidateOnStart_AddBothLazyAndEagerValidationOnDifferentTypes_ [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ValidateOnStart_MultipleErrorsInOneValidationCall_ValidatesFailureWithMultipleErrors() { var hostBuilder = CreateHostBuilder(services => @@ -316,7 +316,7 @@ public async Task ValidateOnStart_MultipleErrorsInOneValidationCall_ValidatesFai [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34582", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52114", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ValidateOnStart_MultipleErrorsInOneValidationCallUsingCustomErrors_FailuresContainCustomErrors() { var hostBuilder = CreateHostBuilder(services => diff --git a/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs b/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs index f9694e07e6f598..46c88511870324 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/SimpleConsoleFormatterTests.cs @@ -14,7 +14,7 @@ public class SimpleConsoleFormatterTests : ConsoleFormatterTests [InlineData(LoggerColorBehavior.Enabled)] [InlineData(LoggerColorBehavior.Disabled)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50575", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51398", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51398", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorBehavior colorBehavior) { // Arrange diff --git a/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs b/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs index 289a9c0c67249e..962749c6a6e8a2 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs +++ b/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs @@ -104,7 +104,7 @@ public void Choose() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50572", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Command() { var expected = Environment.CommandLine; diff --git a/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs b/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs index df7360b84b9d24..6c8ee593729cf2 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs +++ b/src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs @@ -180,7 +180,7 @@ public void CopyFile_FileSourceFileName_DestinationFileName() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void CopyFile_FileSourceFileName_DestinationFileName_OverwriteFalse() { var testFileSource = GetTestFilePath(); @@ -735,7 +735,7 @@ public void MoveFile_SourceFileName_DestinationFileName() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void MoveFile_SourceFileName_DestinationFileName_OverwriteFalse() { var SourceFileNameWithPath = CreateTestFile(SourceData, TestFileName: GetTestFileName()); diff --git a/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs b/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs index d587923bde9127..c43195713fdf63 100644 --- a/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs +++ b/src/libraries/System.Collections.Immutable/tests/ImmutableArrayTest.cs @@ -1985,7 +1985,7 @@ public void IStructuralEquatableEqualsNullComparerInvalid() [Theory] [MemberData(nameof(IStructuralEquatableGetHashCodeData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50579", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36876", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36876", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void IStructuralEquatableGetHashCode(IEnumerable source, IEqualityComparer comparer) { var array = source.ToImmutableArray(); diff --git a/src/libraries/System.Console/tests/TermInfo.cs b/src/libraries/System.Console/tests/TermInfo.cs index 6cc0435426dfb1..85f1ee89c5e73b 100644 --- a/src/libraries/System.Console/tests/TermInfo.cs +++ b/src/libraries/System.Console/tests/TermInfo.cs @@ -27,7 +27,7 @@ public class TermInfo [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests TermInfo - [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void VerifyInstalledTermInfosParse() { bool foundAtLeastOne = false; @@ -62,7 +62,7 @@ public void VerifyInstalledTermInfosParse() [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests TermInfo - [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void VerifyTermInfoSupportsNewAndLegacyNcurses() { MethodInfo readDbMethod = typeof(Console).GetTypeInfo().Assembly.GetType(TerminfoDatabaseType).GetTypeInfo().GetDeclaredMethods(ReadDatabaseMethod).Where(m => m.GetParameters().Count() == 2).Single(); @@ -87,7 +87,7 @@ public void VerifyTermInfoSupportsNewAndLegacyNcurses() [InlineData("mach-color", "\u001B\u005B\u00330m", "\u001B\u005B\u00340m", 0)] [InlineData("mach-color", "\u001B\u005B\u00335m", "\u001B\u005B\u00345m", 5)] [InlineData("mach-color", "\u001B\u005B\u003312m", "\u001B\u005B\u003412m", 12)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TermInfoVerification(string termToTest, string expectedForeground, string expectedBackground, int colorValue) { object db = ReadTermInfoDatabase(termToTest); @@ -111,7 +111,7 @@ public void EmuTermInfoDoesntBreakParser() [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests TermInfo - [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36878", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TryingToLoadTermThatDoesNotExistDoesNotThrow() { const string NonexistentTerm = "foobar____"; diff --git a/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs b/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs index f8eb6c3f564c83..321c014e0bed9d 100644 --- a/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs +++ b/src/libraries/System.Data.Common/tests/System/Data/Common/DbProviderFactoriesTests.cs @@ -38,7 +38,7 @@ public void GetFactoryNoRegistrationTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetFactoryWithInvariantNameTest() { ClearRegisteredFactories(); @@ -50,7 +50,7 @@ public void GetFactoryWithInvariantNameTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetFactoryWithDbConnectionTest() { ClearRegisteredFactories(); @@ -62,7 +62,7 @@ public void GetFactoryWithDbConnectionTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetFactoryWithDataRowTest() { ClearRegisteredFactories(); @@ -70,7 +70,7 @@ public void GetFactoryWithDataRowTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RegisterFactoryWithTypeNameTest() { ClearRegisteredFactories(); @@ -78,7 +78,7 @@ public void RegisterFactoryWithTypeNameTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RegisterFactoryWithTypeTest() { ClearRegisteredFactories(); @@ -86,7 +86,7 @@ public void RegisterFactoryWithTypeTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RegisterFactoryWithInstanceTest() { ClearRegisteredFactories(); @@ -102,7 +102,7 @@ public void RegisterFactoryWithWrongTypeTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RegisterFactoryWithBadInvariantNameTest() { ClearRegisteredFactories(); @@ -111,7 +111,7 @@ public void RegisterFactoryWithBadInvariantNameTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RegisterFactoryWithAssemblyQualifiedNameTest() { ClearRegisteredFactories(); @@ -135,7 +135,7 @@ public void RegisterFactoryWithWrongAssemblyQualifiedNameTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void UnregisterFactoryTest() { ClearRegisteredFactories(); @@ -146,7 +146,7 @@ public void UnregisterFactoryTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TryGetFactoryTest() { ClearRegisteredFactories(); @@ -159,7 +159,7 @@ public void TryGetFactoryTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ReplaceFactoryWithRegisterFactoryWithTypeTest() { ClearRegisteredFactories(); @@ -174,7 +174,7 @@ public void ReplaceFactoryWithRegisterFactoryWithTypeTest() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36879", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetProviderInvariantNamesTest() { ClearRegisteredFactories(); diff --git a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs index 126c54d4b4eb98..cabe5a7f4ec9ed 100644 --- a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs +++ b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs @@ -68,7 +68,7 @@ public void Debug_WriteNull_SkipsIndentation() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Debug_WriteLineNull_IndentsEmptyStringProperly() { Debug.Indent(); @@ -211,7 +211,7 @@ public void IndentSize_Set_GetReturnsExpected(int indentSize, int expectedIndent [InlineData(0, 0)] [InlineData(1, 1)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void IndentLevel_Set_GetReturnsExpected(int indentLevel, int expectedIndentLevel) { Debug.IndentLevel = indentLevel; diff --git a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs index b4417a5cec5c2b..52b428efce742b 100644 --- a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs +++ b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsUsingListeners.cs @@ -197,7 +197,7 @@ public void Trace_Refresh_ResetsIndentSize() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Trace_ClearTraceListeners_StopsWritingToDebugger() { VerifyLogged(() => Debug.Write("pizza"), "pizza"); @@ -232,7 +232,7 @@ public void TraceWriteIf() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TraceWriteLineIf() { VerifyLogged(() => Trace.WriteLineIf(true, 5), "5" + Environment.NewLine); diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs index 56d4d86112fed4..5890e43abd37b0 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs @@ -7,7 +7,7 @@ namespace System.Diagnostics.Tests { [ActiveIssue("https://github.com/dotnet/runtime/issues/37073", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51376", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51376", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public class ActivityTests : IDisposable { [Fact] diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs index 364b85d6dbb062..1ffe9f0f24ca47 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs @@ -31,7 +31,7 @@ private static bool IsAdmin_IsNotNano_RemoteExecutorIsSupported => PlatformDetection.IsWindowsAndElevated && PlatformDetection.IsNotWindowsNanoServer && RemoteExecutor.IsSupported; [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TestEnvironmentProperty() { Assert.NotEqual(0, new Process().StartInfo.Environment.Count); @@ -773,7 +773,7 @@ public void Verbs_GetUnix_ReturnsEmpty() [PlatformSpecific(TestPlatforms.AnyUnix)] // Test case is specific to Unix [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51386", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TestEnvironmentVariablesPropertyUnix() { ProcessStartInfo psi = new ProcessStartInfo(); diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs index fc343a54e19387..a095dc87007c08 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs @@ -10,7 +10,7 @@ namespace System.Diagnostics.SymbolStore.Tests public class StackTraceSymbolsTests { [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51399", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51399", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void StackTraceSymbolsDoNotLockFile() { var asmPath = AssemblyPathHelper.GetAssemblyLocation(typeof(StackTraceSymbolsTests).Assembly); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs index 8c4ba39aa8b444..2ee59adf59464f 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestNegative.cs @@ -59,7 +59,7 @@ private static string GetResourceStringFromReflection(string key) /// [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "https://github.com/dotnet/runtime/issues/21421")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_GenerateManifest_InvalidEventSources() { TestUtilities.CheckNoEventSourcesRunning("Start"); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs index 1cd9fc8713de2c..03369ed4ff12fc 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsTraits.cs @@ -29,7 +29,7 @@ public class TestsTraits /// Tests EventSource Traits. /// [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_EventSource_Traits_Contract() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -46,7 +46,7 @@ public void Test_EventSource_Traits_Contract() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_EventSource_Traits_Dynamic() { TestUtilities.CheckNoEventSourcesRunning("Start"); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs index 61b16e0d493d8c..58347d9dcfcda2 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.cs @@ -64,7 +64,7 @@ private void Test_BadTypes_Manifest(EventSource source) /// Test the /// [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // ActiveIssue: https://github.com/dotnet/runtime/issues/26197 - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_BadEventSource_MismatchedIds() { TestUtilities.CheckNoEventSourcesRunning("Start"); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs index 7a6971fa684eb2..a2c4dffb8c846e 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs @@ -37,7 +37,7 @@ private struct PartB_UserInfo /// [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21564", TargetFrameworkMonikers.NetFramework)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_Write_T_EventListener() { using (var listener = new EventListenerListener()) @@ -52,7 +52,7 @@ public void Test_Write_T_EventListener() /// [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21564", TargetFrameworkMonikers.NetFramework)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_Write_T_EventListener_UseEvents() { Test_Write_T(new EventListenerListener(true)); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs index 9093aeffe4e55f..0c08ee23202d75 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWriteEventToListener.cs @@ -18,7 +18,7 @@ public partial class TestsWriteEventToListener { [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21569", TargetFrameworkMonikers.NetFramework)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_WriteEvent_ArgsBasicTypes() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -173,7 +173,7 @@ public void Test_WriteEvent_ArgsBasicTypes() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21569", TargetFrameworkMonikers.NetFramework)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_WriteEvent_ArgsCornerCases() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -207,7 +207,7 @@ public void Test_WriteEvent_ArgsCornerCases() static partial void Test_WriteEvent_ArgsCornerCases_TestEtw(EventSourceTest log); [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_WriteEvent_InvalidCalls() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -230,7 +230,7 @@ public void Test_WriteEvent_InvalidCalls() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_WriteEvent_ToChannel_Coverage() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -245,7 +245,7 @@ public void Test_WriteEvent_ToChannel_Coverage() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/21569", TargetFrameworkMonikers.NetFramework)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_WriteEvent_ZeroKwds() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -282,7 +282,7 @@ public void Test_WriteEvent_ZeroKwds() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_EventSourceCreatedEvents_BeforeListener() { TestUtilities.CheckNoEventSourcesRunning("Start"); @@ -346,7 +346,7 @@ public void Test_EventSourceCreatedEvents_BeforeListener() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51382", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Test_EventSourceCreatedEvents_AfterListener() { TestUtilities.CheckNoEventSourcesRunning("Start"); diff --git a/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs b/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs index 407581b39ef276..78f69aa5128713 100644 --- a/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs +++ b/src/libraries/System.IO.Compression.Brotli/tests/BrotliGoogleTestData.cs @@ -32,7 +32,7 @@ public static IEnumerable GoogleTestData() [Theory] [MemberData(nameof(GoogleTestData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DecompressFile(string fileName) { byte[] bytes = File.ReadAllBytes(CompressedTestFile(fileName)); @@ -43,7 +43,7 @@ public void DecompressFile(string fileName) [Theory] [MemberData(nameof(GoogleTestData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RoundtripCompressDecompressFile(string fileName) { byte[] bytes = File.ReadAllBytes(fileName); diff --git a/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs b/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs index 28bdce057fa986..316e3ba7a08454 100644 --- a/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs +++ b/src/libraries/System.IO.Compression.Brotli/tests/CompressionStreamUnitTests.Brotli.cs @@ -58,7 +58,7 @@ public void GetMaxCompressedSize_Basic() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetMaxCompressedSize() { string uncompressedFile = UncompressedTestFile(); @@ -72,7 +72,7 @@ public void GetMaxCompressedSize() /// Test to ensure that when given an empty Destination span, the decoder will consume no input and write no output. /// [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Decompress_WithEmptyDestination() { string testFile = UncompressedTestFile(); @@ -116,7 +116,7 @@ public void Decompress_WithEmptySource() /// Test to ensure that when given an empty Destination span, the encoder consume no input and write no output /// [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36884", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Compress_WithEmptyDestination() { string testFile = UncompressedTestFile(); diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs index 3e4201be4dff91..63e854dd0c008c 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs @@ -43,7 +43,7 @@ public void Directory_Move_Multiple_From_Watched_To_Unwatched_Mac(int filesCount [InlineData(1)] [InlineData(2)] [InlineData(3)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51393", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51393", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Directory_Move_Multiple_From_Watched_To_Unwatched(int filesCount) { DirectoryMove_Multiple_FromWatchedToUnwatched(filesCount, skipOldEvents: false); diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs index a02c773719593d..c9a36a577962f8 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs @@ -47,7 +47,7 @@ public void File_Move_Multiple_From_Watched_To_Unwatched_Mac(int filesCount) [InlineData(1)] [InlineData(2)] [InlineData(3)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51393", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51393", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void File_Move_Multiple_From_Watched_To_Unwatched(int filesCount) { FileMove_Multiple_FromWatchedToUnwatched(filesCount, skipOldEvents: false); diff --git a/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs b/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs index 85048122c3446b..2c01cd430d32f3 100644 --- a/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs +++ b/src/libraries/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs @@ -65,7 +65,7 @@ public void SettingInvalidAttributes_Unix(FileAttributes attributes) [Theory] [InlineData(FileAttributes.Hidden)] [PlatformSpecific(TestPlatforms.AnyUnix & ~(TestPlatforms.OSX | TestPlatforms.FreeBSD))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SettingInvalidAttributes_UnixExceptOSXAndFreeBSD(FileAttributes attributes) { string path = CreateItem(); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs b/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs index 17cb4ee9f83941..fb3a74305bca2c 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs @@ -201,7 +201,7 @@ public void AllowedSymbols() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DirectoryEqualToMaxDirectory_CanBeCreatedAllAtOnce() { DirectoryInfo testDir = Create(GetTestFilePath()); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs b/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs index 447add1b6253c3..107472c795059b 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/Exists.cs @@ -301,7 +301,7 @@ public void PathWithReservedDeviceNameAsPath_ReturnsFalse(string component) [Theory, MemberData(nameof(UncPathsWithoutShareName))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void UncPathWithoutShareNameAsPath_ReturnsFalse(string component) { Assert.False(Exists(component)); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs b/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs index 0cb1e9b609e812..c4858914a43812 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs @@ -699,7 +699,7 @@ public void WindowsSearchPatternWhitespace() [Fact] [PlatformSpecific(CaseSensitivePlatforms)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SearchPatternCaseSensitive() { DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs b/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs index 33d385b67d8cc4..bec3ff78cf546f 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/GetFiles.cs @@ -42,7 +42,7 @@ public void EnumerateWithSymLinkToFile() } [ConditionalFact(nameof(AreAllLongPathsAvailable))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void EnumerateFilesOverLegacyMaxPath() { // We want to test that directories under the legacy MAX_PATH (260 characters, including the null) can iterate files diff --git a/src/libraries/System.IO.FileSystem/tests/File/Create.cs b/src/libraries/System.IO.FileSystem/tests/File/Create.cs index 45207b1d2e3395..a4a8de349f3bb3 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/Create.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/Create.cs @@ -188,7 +188,7 @@ public void LongFileName() [Fact] [PlatformSpecific(CaseSensitivePlatforms)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void CaseSensitive() { DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); diff --git a/src/libraries/System.IO.FileSystem/tests/File/Exists.cs b/src/libraries/System.IO.FileSystem/tests/File/Exists.cs index f936047164c9a5..b37c8d94c32f3b 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/Exists.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/Exists.cs @@ -112,7 +112,7 @@ public void PathAlreadyExistsAsDirectory() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DirectoryLongerThanMaxDirectoryAsPath_DoesntThrow() { Assert.All((IOInputs.GetPathsLongerThanMaxDirectory(GetTestFilePath())), (path) => @@ -233,7 +233,7 @@ public void PathWithReservedDeviceNameAsPath_ReturnsFalse(string component) [Theory, MemberData(nameof(UncPathsWithoutShareName))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void UncPathWithoutShareNameAsPath_ReturnsFalse(string component) { Assert.False(Exists(component)); diff --git a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs index aecce2e6a6ecd9..6525212cd8d9ed 100644 --- a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs +++ b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs @@ -38,7 +38,7 @@ public void FileClosed_Throws() } [Fact] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void LockUnlock_Unsupported_OSX() { string path = GetTestFilePath(); @@ -58,7 +58,7 @@ public void LockUnlock_Unsupported_OSX() [InlineData(200, 50, 150)] [InlineData(200, 100, 100)] [InlineData(20, 2000, 1000)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void Lock_Unlock_Successful(long fileLength, long position, long length) { string path = GetTestFilePath(); @@ -75,7 +75,7 @@ public void Lock_Unlock_Successful(long fileLength, long position, long length) [InlineData(FileAccess.Read)] [InlineData(FileAccess.Write)] [InlineData(FileAccess.ReadWrite)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void Lock_Unlock_Successful_AlternateFileAccess(FileAccess fileAccess) { string path = GetTestFilePath(); @@ -89,7 +89,7 @@ public void Lock_Unlock_Successful_AlternateFileAccess(FileAccess fileAccess) [Theory] [InlineData(10, 0, 2, 3, 5)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void NonOverlappingRegions_Success(long fileLength, long firstPosition, long firstLength, long secondPosition, long secondLength) { string path = GetTestFilePath(); @@ -176,7 +176,7 @@ public void OverlappingRegionsFromSameProcess_AllowedOnUnix(long fileLength, lon [InlineData(10, 3, 5, 2, 6)] [InlineData(10, 3, 5, 2, 4)] [InlineData(10, 3, 5, 4, 6)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void OverlappingRegionsFromOtherProcess_ThrowsException(long fileLength, long firstPosition, long firstLength, long secondPosition, long secondLength) { string path = GetTestFilePath(); @@ -231,7 +231,7 @@ public void OverlappingRegionsFromOtherProcess_With_ReadLock_AllowedOnLinux() [InlineData(FileAccess.Read)] [InlineData(FileAccess.Write)] [InlineData(FileAccess.ReadWrite)] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] + [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] public void OverlappingRegionsFromOtherProcess_With_WriteLock_ThrowsException(FileAccess fileAccess) { string path = GetTestFilePath(); diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs index aa10d381cf73e0..23654e823de680 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs @@ -293,7 +293,7 @@ public void InvalidArguments_Inheritability(HandleInheritability inheritability) new string[] { null, "CreateUniqueMapName()" }, new long[] { 1, 256, -1 /*pagesize*/, 10000 }, new MemoryMappedFileAccess[] { MemoryMappedFileAccess.ReadWrite })] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ValidArgumentCombinationsWithPath_ModesOpenOrCreate( FileMode mode, string mapName, long capacity, MemoryMappedFileAccess access) { @@ -344,7 +344,7 @@ public void ValidArgumentCombinationsWithPath_ModesOpenOrCreate( new string[] { null, "CreateUniqueMapName()" }, new long[] { 1, 256, -1 /*pagesize*/, 10000 }, new MemoryMappedFileAccess[] { MemoryMappedFileAccess.Read, MemoryMappedFileAccess.ReadWrite, MemoryMappedFileAccess.CopyOnWrite })] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ValidArgumentCombinationsWithPath_ModeCreateNew( FileMode mode, string mapName, long capacity, MemoryMappedFileAccess access) { @@ -369,7 +369,7 @@ public void ValidArgumentCombinationsWithPath_ModeCreateNew( [MemberData(nameof(MemberData_ValidNameCapacityCombinationsWithPath), new string[] { null, "CreateUniqueMapName()" }, new long[] { 1, 256, -1 /*pagesize*/, 10000 })] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ValidArgumentCombinationsWithPath_ModeCreate(string mapName, long capacity) { using (TempFile file = new TempFile(GetTestFilePath(), capacity)) @@ -456,7 +456,7 @@ public static IEnumerable MemberData_ValidNameCapacityCombinationsWith new MemoryMappedFileAccess[] { MemoryMappedFileAccess.Read, MemoryMappedFileAccess.ReadWrite, MemoryMappedFileAccess.CopyOnWrite }, new HandleInheritability[] { HandleInheritability.None, HandleInheritability.Inheritable }, new bool[] { false, true })] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ValidArgumentCombinationsWithStream( string mapName, long capacity, MemoryMappedFileAccess access, HandleInheritability inheritability, bool leaveOpen) { diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs index 8b0b9178e028d7..e7c5ee2f80c3a6 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs @@ -188,7 +188,7 @@ public void ReusingNames_Windows(string name) new MemoryMappedFileAccess[] { MemoryMappedFileAccess.Read, MemoryMappedFileAccess.ReadExecute, MemoryMappedFileAccess.ReadWrite, MemoryMappedFileAccess.ReadWriteExecute, MemoryMappedFileAccess.CopyOnWrite }, new MemoryMappedFileOptions[] { MemoryMappedFileOptions.None, MemoryMappedFileOptions.DelayAllocatePages }, new HandleInheritability[] { HandleInheritability.None, HandleInheritability.Inheritable })] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ValidArgumentCombinations( string mapName, long capacity, MemoryMappedFileAccess access, MemoryMappedFileOptions options, HandleInheritability inheritability) { diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs index 8adb9e4105e898..512748b10f9252 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs @@ -18,7 +18,7 @@ public class MemoryMappedViewAccessorTests : MemoryMappedFilesTestBase /// Test to validate the offset, size, and access parameters to MemoryMappedFile.CreateViewAccessor. /// [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void InvalidArguments() { int mapLength = s_pageSize.Value; diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs index 0f406c99bb6d2f..5874800d73f44a 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs @@ -18,7 +18,7 @@ public class MemoryMappedViewStreamTests : MemoryMappedFilesTestBase /// Test to validate the offset, size, and access parameters to MemoryMappedFile.CreateViewAccessor. /// [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51375", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void InvalidArguments() { int mapLength = s_pageSize.Value; diff --git a/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs b/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs index 08a1a0e5c2c19a..4a2b91f8862b57 100644 --- a/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs +++ b/src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs @@ -513,7 +513,7 @@ public async Task ReadBlockAsync_RepeatsReadsUntilReadDesiredAmount() [InlineData(1, false)] [InlineData(1, true)] [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51390", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51390", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ReadAsync_Canceled_ThrowsException(int method, bool precanceled) { Func> func = method switch diff --git a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs index 36b2081a012093..94dba8bdb7fcdc 100644 --- a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs +++ b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostByNameTest.cs @@ -103,7 +103,7 @@ public void DnsObsoleteGetHostByName_IPv6String_ReturnsOnlyGivenIP() [ActiveIssue("https://github.com/dotnet/runtime/issues/1488", TestPlatforms.OSX)] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DnsObsoleteGetHostByName_EmptyString_ReturnsHostName() { IPHostEntry entry = Dns.GetHostByName(""); @@ -114,7 +114,7 @@ public void DnsObsoleteGetHostByName_EmptyString_ReturnsHostName() [ActiveIssue("https://github.com/dotnet/runtime/issues/1488", TestPlatforms.OSX)] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process), nameof(PlatformDetection.IsThreadingSupported))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName() { IPHostEntry entry = Dns.EndGetHostByName(Dns.BeginGetHostByName("", null, null)); diff --git a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs index d7a36948752ec1..6fa40dd80c46a0 100644 --- a/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs +++ b/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs @@ -25,7 +25,7 @@ public async Task Dns_GetHostEntryAsync_IPAddress_Ok() [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] [InlineData("")] [InlineData(TestSettings.LocalHost)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Dns_GetHostEntry_HostString_Ok(string hostName) { try @@ -75,7 +75,7 @@ public async Task Dns_GetHostEntry_HostString_Ok(string hostName) [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")] [InlineData("")] [InlineData(TestSettings.LocalHost)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Dns_GetHostEntryAsync_HostString_Ok(string hostName) => await TestGetHostEntryAsync(() => Dns.GetHostEntryAsync(hostName)); diff --git a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs index 65860caceb734e..62ba2328c65b77 100644 --- a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs +++ b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs @@ -26,7 +26,7 @@ public IPGlobalPropertiesTest(ITestOutputHelper output) } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void IPGlobalProperties_AccessAllMethods_NoErrors() { IPGlobalProperties gp = IPGlobalProperties.GetIPGlobalProperties(); @@ -52,7 +52,7 @@ public void IPGlobalProperties_AccessAllMethods_NoErrors() [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] [MemberData(nameof(Loopbacks))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void IPGlobalProperties_TcpListeners_Succeed(IPAddress address) { using (var server = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp)) @@ -78,7 +78,7 @@ public void IPGlobalProperties_TcpListeners_Succeed(IPAddress address) [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] [ActiveIssue("https://github.com/dotnet/runtime/issues/34690", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] [MemberData(nameof(Loopbacks))] public async Task IPGlobalProperties_TcpActiveConnections_Succeed(IPAddress address) { diff --git a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs index fb0efad37a178b..2ce80187032907 100644 --- a/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs +++ b/src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkInterfaceBasicTest.cs @@ -273,7 +273,7 @@ public void BasicTest_GetIPInterfaceStatistics_Success_Bsd() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // https://github.com/dotnet/runtime/issues/20029 and https://github.com/Microsoft/WSL/issues/3561 [ActiveIssue("https://github.com/dotnet/runtime/issues/50567", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36890", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void BasicTest_GetIsNetworkAvailable_Success() { Assert.True(NetworkInterface.GetIsNetworkAvailable()); diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs index dfdf0694791eac..e49dd44cc8ce16 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs @@ -274,7 +274,7 @@ public void Ctor_Socket_FromPipeHandle_Ctor_Dispose_Success(bool ownsHandle) [InlineData(AddressFamily.InterNetworkV6, SocketType.Raw, ProtocolType.Unspecified)] [InlineData(AddressFamily.Packet, SocketType.Raw, ProtocolType.Raw)] [InlineData(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Ctor_SafeHandle_BasicPropertiesPropagate_Success(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) { bool isRawPacket = (addressFamily == AddressFamily.Packet) && @@ -385,7 +385,7 @@ public void Ctor_SafeHandle_BasicPropertiesPropagate_Success(AddressFamily addre [Theory] [InlineData(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)] [InlineData(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Ctor_SafeHandle_Tcp_SendReceive_Success(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) { using var orig = new Socket(addressFamily, socketType, protocolType); @@ -445,7 +445,7 @@ public async Task Ctor_SafeHandle_Tcp_SendReceive_Success(AddressFamily addressF [Theory] [InlineData(false)] [InlineData(true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Ctor_SafeHandle_Listening_Success(bool shareSafeHandle) { using var listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); @@ -655,7 +655,7 @@ private static unsafe (int, int) pipe2(int flags = 0) [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public unsafe void Ctor_SafeHandle_SocketPair_Success() { // This is platform dependent but it seems like this is same on all supported platforms. diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs index 6104f076a258a2..600ae16628985e 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs @@ -354,7 +354,7 @@ public void Socket_BeginConnectV4IPAddressToV4Host_Throws() public Task BeginConnectV4IPAddressToV4Host_Success() => DualModeBeginConnect_IPAddressToHost_Helper(IPAddress.Loopback, IPAddress.Loopback, false); [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public Task BeginConnectV6IPAddressToV6Host_Success() => DualModeBeginConnect_IPAddressToHost_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback, false); [Fact] diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs index 7bd01782fe9fb8..efac4a735b74f3 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveFrom.cs @@ -170,7 +170,7 @@ public async Task ClosedBeforeOperation_Throws_ObjectDisposedException(bool clos [Theory] [InlineData(true)] [InlineData(false)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ClosedDuringOperation_Throws_ObjectDisposedExceptionOrSocketException(bool closeOrDispose) { if (UsesSync && PlatformDetection.IsOSX) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs index 78dcf281d135fe..3e792b7bd272b0 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs @@ -174,7 +174,7 @@ public async Task ClosedBeforeOperation_Throws_ObjectDisposedException(bool clos [Theory] [InlineData(true)] [InlineData(false)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ClosedDuringOperation_Throws_ObjectDisposedExceptionOrSocketException(bool closeOrDispose) { if (UsesSync && PlatformDetection.IsOSX) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs index 6cc49153f887eb..e3187cdc066df0 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs @@ -111,7 +111,7 @@ public void Select_SocketAlreadyClosed_AllSocketsClosableAfterException(int sock [SkipOnPlatform(TestPlatforms.OSX, "typical OSX install has very low max open file descriptors value")] [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Select_ReadError_NoneReady_ManySockets() { Select_ReadError_NoneReady(45, 45); @@ -179,7 +179,7 @@ public void Select_Read_OneReadyAtATime(int reads) [SkipOnPlatform(TestPlatforms.OSX, "typical OSX install has very low max open file descriptors value")] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Select_Error_OneReadyAtATime() { const int Errors = 90; // value larger than the internal value in SocketPal.Unix that swaps between stack and heap allocation @@ -227,7 +227,7 @@ public void Poll_NotReady(SelectMode mode) [Theory] [InlineData(-1)] [InlineData(FailTimeoutMicroseconds)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Poll_ReadReady_LongTimeouts(int microsecondsTimeout) { KeyValuePair pair = CreateConnectedSockets(); diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs index 1d3c519cf5c2fd..0a8aaff9970bf3 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs @@ -753,7 +753,7 @@ await Task.WhenAll( [Fact] [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "SendBufferSize, ReceiveBufferSize = 0 not supported on BSD like stacks.")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendRecv_NoBuffering_Success() { if (UsesSync) return; @@ -932,7 +932,7 @@ error is SocketException || [Theory] [MemberData(nameof(UdpReceiveGetsCanceledByDispose_Data))] [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task UdpReceiveGetsCanceledByDispose(IPAddress address) { // We try this a couple of times to deal with a timing race: if the Dispose happens diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs index 606b35636cd876..a504f3957dd3b2 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs @@ -122,7 +122,7 @@ public void MulticastInterface_Set_InvalidIndex_Throws() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // Skip on Nano: https://github.com/dotnet/runtime/issues/26286 [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "Expected behavior is different on OSX or FreeBSD")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task MulticastInterface_Set_IPv6_AnyInterface_Succeeds() { if (PlatformDetection.IsRedHatFamily7) @@ -508,7 +508,7 @@ public void SetIPProtectionLevel_ArgumentException(AddressFamily family) [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50568", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetSetRawSocketOption_Roundtrips(AddressFamily family) { int SOL_SOCKET; @@ -548,7 +548,7 @@ public void GetSetRawSocketOption_Roundtrips(AddressFamily family) } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Get_AcceptConnection_Succeeds() { using (Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs index 19f0c45bc71c5e..c7311ddba69ba6 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs @@ -128,7 +128,7 @@ public void Accept_Invalid_Throws() [InlineData(0)] // Sync [InlineData(1)] // Async [InlineData(2)] // APM - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Accept_AcceptsPendingSocketOrClient(int mode) { var listener = new TcpListener(IPAddress.Loopback, 0); diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs index cde199879108ad..1137613a062c18 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UdpClientTest.cs @@ -257,7 +257,7 @@ public void Ttl_Roundtrips() [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.FreeBSD, "BSD like doesn't have an equivalent of DontFragment")] [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DontFragment_Roundtrips() { using (var udpClient = new UdpClient()) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs index 99499ebe62f23a..35486516aec121 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs @@ -29,7 +29,7 @@ public void OSSupportsUnixDomainSockets_ReturnsCorrectValue() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_Success() { string path = null; @@ -85,7 +85,7 @@ public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_Success() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_NotServer() { string path = GetRandomNonExistingFilePath(); @@ -120,7 +120,7 @@ public async Task Socket_ConnectAsyncUnixDomainSocketEndPoint_NotServer() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Socket_SendReceive_Success() { string path = GetRandomNonExistingFilePath(); @@ -158,7 +158,7 @@ public void Socket_SendReceive_Success() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Socket_SendReceive_Clone_Success() { string path = GetRandomNonExistingFilePath(); @@ -209,7 +209,7 @@ public void Socket_SendReceive_Clone_Success() } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Socket_SendReceiveAsync_Success() { string path = GetRandomNonExistingFilePath(); @@ -252,7 +252,7 @@ public async Task Socket_SendReceiveAsync_Success() [InlineData(500, 18, 21)] [InlineData(500, 21, 18)] [InlineData(5, 128000, 64000)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Socket_SendReceiveAsync_PropagateToStream_Success(int iterations, int writeBufferSize, int readBufferSize) { var writeBuffer = new byte[writeBufferSize * iterations]; @@ -314,7 +314,7 @@ public async Task Socket_SendReceiveAsync_PropagateToStream_Success(int iteratio [ActiveIssue("https://github.com/dotnet/runtime/issues/26189", TestPlatforms.Windows)] [InlineData(false)] [InlineData(true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ConcurrentSendReceive(bool forceNonBlocking) { using (Socket server = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified)) @@ -357,7 +357,7 @@ public async Task ConcurrentSendReceive(bool forceNonBlocking) } [ConditionalFact(nameof(PlatformSupportsUnixDomainSockets))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task ConcurrentSendReceiveAsync() { using (Socket server = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified)) @@ -412,7 +412,7 @@ public void UnixDomainSocketEndPoint_InvalidPaths_Throws() [ConditionalTheory(nameof(PlatformSupportsUnixDomainSockets))] [InlineData(false)] [InlineData(true)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void UnixDomainSocketEndPoint_RemoteEndPointEqualsBindAddress(bool abstractAddress) { string serverAddress; diff --git a/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs b/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs index a7757ba4999541..c3ccec90cff30e 100644 --- a/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs +++ b/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs @@ -69,7 +69,7 @@ public static void ReadAfterInitializationWithTextReaderOnAsyncReaderDoesNotThro } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.MacCatalyst | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ReadAsyncAfterInitializationWithUriThrows() { using (XmlReader reader = XmlReader.Create("http://test.test/test.html", new XmlReaderSettings() { Async = true })) @@ -79,7 +79,7 @@ public static void ReadAsyncAfterInitializationWithUriThrows() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.MacCatalyst | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ReadAfterInitializationWithUriOnAsyncReaderTrows() { using (XmlReader reader = XmlReader.Create("http://test.test/test.html", new XmlReaderSettings() { Async = true })) @@ -89,7 +89,7 @@ public static void ReadAfterInitializationWithUriOnAsyncReaderTrows() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux), nameof(PlatformDetection.IsThreadingSupported))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.MacCatalyst | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InitializationWithUriOnNonAsyncReaderThrows() { Assert.Throws(() => XmlReader.Create("http://test.test/test.html", new XmlReaderSettings() { Async = false })); diff --git a/src/libraries/System.Reflection/tests/AssemblyTests.cs b/src/libraries/System.Reflection/tests/AssemblyTests.cs index 1b068374962bc6..0732615ec9e02e 100644 --- a/src/libraries/System.Reflection/tests/AssemblyTests.cs +++ b/src/libraries/System.Reflection/tests/AssemblyTests.cs @@ -145,7 +145,7 @@ public void ExportedTypes(Type type, bool expected) [Fact] [SkipOnPlatform(TestPlatforms.Browser, "entry assembly won't be xunit.console on browser")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36892", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36892", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetEntryAssembly() { Assert.NotNull(Assembly.GetEntryAssembly()); @@ -720,7 +720,7 @@ public void AssemblyLoadFromBytesNeg() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36892", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36892", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void AssemblyLoadFromBytesWithSymbols() { Assembly assembly = typeof(AssemblyTests).Assembly; diff --git a/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs b/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs index 539e34101f1225..ce3dd68df7e41c 100644 --- a/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs +++ b/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs @@ -82,7 +82,7 @@ public static IEnumerable CultureResourceData() [Theory] [MemberData(nameof(CultureResourceData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36893", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36893", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void GetString_CultureFallback(string key, string cultureName, string expectedValue) { Type resourceType = typeof(Resources.TestResx); @@ -93,7 +93,7 @@ public static void GetString_CultureFallback(string key, string cultureName, str } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36893", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36893", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void GetString_FromTestClassWithoutNeutralResources() { // This test is designed to complement the GetString_FromCulutureAndResourceType "fr" & "fr-CA" cases diff --git a/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs b/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs index 0ae5ff0e895648..098a8519786356 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs @@ -47,7 +47,7 @@ public void RelativeSearchPath_Is_Null() [SkipOnPlatform(TestPlatforms.Browser, "throws pNSE")] [ActiveIssue("https://github.com/dotnet/runtime/issues/49568", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49868", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TargetFrameworkTest() { const int ExpectedExitCode = 0; @@ -798,7 +798,7 @@ public static void GetPermissionSet() [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser | TestPlatforms.Android, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void TestingCreateInstanceFromObjectHandle(string physicalFileName, string assemblyFile, string type, string returnedFullNameType, Type exceptionType) { ObjectHandle oh = null; @@ -899,7 +899,7 @@ public static void TestingCreateInstanceObjectHandle(string assemblyName, string [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser | TestPlatforms.Android, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleFullSignatureData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void TestingCreateInstanceFromObjectHandleFullSignature(string physicalFileName, string assemblyFile, string type, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, string returnedFullNameType) { ObjectHandle oh = AppDomain.CurrentDomain.CreateInstanceFrom(assemblyFile: assemblyFile, typeName: type, ignoreCase: ignoreCase, bindingAttr: bindingAttr, binder: binder, args: args, culture: culture, activationAttributes: activationAttributes); diff --git a/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs b/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs index 940a4e8b5dd8b6..b192b0900acd03 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs @@ -173,7 +173,7 @@ public void OSVersion_ValidVersion() [InlineData("nelknet 4.15.0-24201807041620-generic", 4, 15, 0, int.MaxValue)] // integer overflow [InlineData("", 0, 0, 0, 0)] [InlineData("1abc", 1, 0, 0, 0)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void OSVersion_ParseVersion(string input, int major, int minor, int build, int revision) { var getOSMethod = typeof(Environment).GetMethod("GetOperatingSystem", BindingFlags.Static | BindingFlags.NonPublic); @@ -338,7 +338,7 @@ public void FailFast_ExceptionStackTrace_InnerException() [Fact] [PlatformSpecific(TestPlatforms.AnyUnix | TestPlatforms.Browser)] // Tests OS-specific environment - [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36896", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetFolderPath_Unix_PersonalIsHomeAndUserProfile() { Assert.Equal(Environment.GetEnvironmentVariable("HOME"), Environment.GetFolderPath(Environment.SpecialFolder.Personal)); diff --git a/src/libraries/System.Runtime/tests/System/ActivatorTests.cs b/src/libraries/System.Runtime/tests/System/ActivatorTests.cs index 81d81065f69042..0ff08745c844c5 100644 --- a/src/libraries/System.Runtime/tests/System/ActivatorTests.cs +++ b/src/libraries/System.Runtime/tests/System/ActivatorTests.cs @@ -621,7 +621,7 @@ public void CreateInstance_PublicOnlyValueTypeWithPrivateDefaultConstructor_Thro [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void TestingCreateInstanceFromObjectHandle(string physicalFileName, string assemblyFile, string type, string returnedFullNameType, Type exceptionType) { ObjectHandle oh = null; @@ -664,7 +664,7 @@ public static void TestingCreateInstanceFromObjectHandle(string physicalFileName [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/51912", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] [MemberData(nameof(TestingCreateInstanceObjectHandleData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void TestingCreateInstanceObjectHandle(string assemblyName, string type, string returnedFullNameType, Type exceptionType, bool returnNull) { ObjectHandle oh = null; @@ -722,7 +722,7 @@ public static void TestingCreateInstanceObjectHandle(string assemblyName, string [Theory] [ActiveIssue("https://github.com/dotnet/runtime/issues/34030", TestPlatforms.Linux | TestPlatforms.Browser, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] [MemberData(nameof(TestingCreateInstanceFromObjectHandleFullSignatureData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void TestingCreateInstanceFromObjectHandleFullSignature(string physicalFileName, string assemblyFile, string type, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, string returnedFullNameType) { ObjectHandle oh = Activator.CreateInstanceFrom(assemblyFile: assemblyFile, typeName: type, ignoreCase: ignoreCase, bindingAttr: bindingAttr, binder: binder, args: args, culture: culture, activationAttributes: activationAttributes); diff --git a/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs b/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs index adfcd5cdd4c487..a481ee253a55e4 100644 --- a/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs +++ b/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs @@ -303,7 +303,7 @@ public void ResolveMethodFail(int token) [Theory] [MemberData(nameof(Fields))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ResolveField(FieldInfo t) { Assert.Equal(t, Module.ResolveField(t.MetadataToken)); diff --git a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs index fcb17222a243df..3167476689f0ea 100644 --- a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs +++ b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs @@ -124,7 +124,7 @@ public static IEnumerable Platform_TimeZoneNamesTestData() // We test the existence of a specific English time zone name to avoid failures on non-English platforms. [ConditionalTheory(nameof(IsEnglishUILanguage))] [MemberData(nameof(Platform_TimeZoneNamesTestData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void Platform_TimeZoneNames(TimeZoneInfo tzi, string displayName, string standardName, string daylightName) { // Edge case - Optionally allow some characters to be absent in the display name. @@ -2622,7 +2622,7 @@ public static void EnsureUtcObjectSingleton() [InlineData("Argentina Standard Time", "America/Argentina/Catamarca")] [InlineData("Newfoundland Standard Time", "America/St_Johns")] [InlineData("Iran Standard Time", "Asia/Tehran")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void UsingAlternativeTimeZoneIdsTest(string windowsId, string ianaId) { if (PlatformDetection.ICUVersion.Major >= 52) @@ -2643,7 +2643,7 @@ public static void UsingAlternativeTimeZoneIdsTest(string windowsId, string iana public static bool SupportIanaNamesConversion => PlatformDetection.IsNotBrowser && PlatformDetection.ICUVersion.Major >= 52; [ConditionalFact(nameof(SupportIanaNamesConversion))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void IsIanaIdTest() { bool expected = !s_isWindows; @@ -2673,7 +2673,7 @@ public static void IsIanaIdTest() [InlineData("Argentina Standard Time", "America/Buenos_Aires")] [InlineData("Newfoundland Standard Time", "America/St_Johns")] [InlineData("Iran Standard Time", "Asia/Tehran")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void IdsConversionsTest(string windowsId, string ianaId) { Assert.True(TimeZoneInfo.TryConvertIanaIdToWindowsId(ianaId, out string winId)); @@ -2695,7 +2695,7 @@ public static void IdsConversionsTest(string windowsId, string ianaId) [InlineData("Central Europe Standard Time", "Europe/Tirane", "AL")] [InlineData("Central Europe Standard Time", "Europe/Podgorica", "ME")] [InlineData("Central Europe Standard Time", "Europe/Belgrade", "RS")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void IdsConversionsWithRegionTest(string windowsId, string ianaId, string region) { Assert.True(TimeZoneInfo.TryConvertWindowsIdToIanaId(windowsId, region, out string ianaConvertedId)); diff --git a/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs b/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs index 6717e79c819211..1464db6d4e8244 100644 --- a/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs +++ b/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs @@ -248,7 +248,7 @@ public static IEnumerable MakeArray_UnusualTypes_TestData() [Theory] [MemberData(nameof(MakeArray_UnusualTypes_TestData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void MakeArrayType_UnusualTypes_ReturnsExpected(Type t) { Type tArray = t.MakeArrayType(); @@ -588,7 +588,7 @@ public void IsSZArray_FalseForNonArrayTypes() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void IsSZArray_TrueForSZArrayTypes() { foreach (Type type in NonArrayBaseTypes.Select(nonArrayBaseType => nonArrayBaseType.MakeArrayType())) @@ -640,7 +640,7 @@ public void IsVariableBoundArray_FalseForNonArrayTypes() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52072", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void IsVariableBoundArray_FalseForSZArrayTypes() { foreach (Type type in NonArrayBaseTypes.Select(nonArrayBaseType => nonArrayBaseType.MakeArrayType())) diff --git a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs index d92ef9fe1e58f8..149b28da9e32dd 100644 --- a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs +++ b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs @@ -12,7 +12,7 @@ namespace System.Security.Cryptography.Algorithms.Tests public class AesCcmTests : CommonAEADTests { [Theory] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] [MemberData(nameof(EncryptTamperAADDecryptTestInputs))] public static void EncryptTamperAADDecrypt(int dataLength, int additionalDataLength) { @@ -73,7 +73,7 @@ public static void InvalidNonceSize(int nonceSize) [Theory] [MemberData(nameof(GetValidNonceSizes))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ValidNonceSize(int nonceSize) { const int dataLength = 35; @@ -116,7 +116,7 @@ public static void InvalidTagSize(int tagSize) [Theory] [MemberData(nameof(GetValidTagSizes))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ValidTagSize(int tagSize) { const int dataLength = 35; @@ -139,7 +139,7 @@ public static void ValidTagSize(int tagSize) } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void TwoEncryptionsAndDecryptionsUsingOneInstance() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -267,7 +267,7 @@ public static void EncryptDecryptNullTag() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InplaceEncryptDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -288,7 +288,7 @@ public static void InplaceEncryptDecrypt() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InplaceEncryptTamperTagDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -313,7 +313,7 @@ public static void InplaceEncryptTamperTagDecrypt() [Theory] [MemberData(nameof(GetNistCcmTestCases))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AesCcmNistTests(AEADTest testCase) { using (var aesCcm = new AesCcm(testCase.Key)) @@ -332,7 +332,7 @@ public static void AesCcmNistTests(AEADTest testCase) [Theory] [MemberData(nameof(GetNistCcmTestCases))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AesCcmNistTestsTamperTag(AEADTest testCase) { using (var aesCcm = new AesCcm(testCase.Key)) @@ -355,7 +355,7 @@ public static void AesCcmNistTestsTamperTag(AEADTest testCase) [Theory] [MemberData(nameof(GetNistCcmTestCasesWithNonEmptyPT))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AesCcmNistTestsTamperCiphertext(AEADTest testCase) { using (var aesCcm = new AesCcm(testCase.Key)) diff --git a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs index 95161fe0488461..aafb9ff010e672 100644 --- a/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs +++ b/src/libraries/System.Security.Cryptography.Algorithms/tests/AesGcmTests.cs @@ -12,7 +12,7 @@ namespace System.Security.Cryptography.Algorithms.Tests public class AesGcmTests : CommonAEADTests { [Theory] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] [MemberData(nameof(EncryptTamperAADDecryptTestInputs))] public static void EncryptTamperAADDecrypt(int dataLength, int additionalDataLength) { @@ -54,7 +54,7 @@ public static void InvalidKeyLength(int keyLength) [Theory] [MemberData(nameof(GetInvalidNonceSizes))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InvalidNonceSize(int nonceSize) { int dataLength = 30; @@ -74,7 +74,7 @@ public static void InvalidNonceSize(int nonceSize) [Theory] [MemberData(nameof(GetValidNonceSizes))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ValidNonceSize(int nonceSize) { const int dataLength = 35; @@ -98,7 +98,7 @@ public static void ValidNonceSize(int nonceSize) [Theory] [MemberData(nameof(GetInvalidTagSizes))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InvalidTagSize(int tagSize) { int dataLength = 30; @@ -118,7 +118,7 @@ public static void InvalidTagSize(int tagSize) [Theory] [MemberData(nameof(GetValidTagSizes))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ValidTagSize(int tagSize) { const int dataLength = 35; @@ -141,7 +141,7 @@ public static void ValidTagSize(int tagSize) } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void TwoEncryptionsAndDecryptionsUsingOneInstance() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -186,7 +186,7 @@ public static void TwoEncryptionsAndDecryptionsUsingOneInstance() } [Theory] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] [MemberData(nameof(PlaintextAndCiphertextSizeDifferTestInputs))] public static void PlaintextAndCiphertextSizeDiffer(int ptLen, int ctLen) { @@ -210,7 +210,7 @@ public static void NullKey() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void EncryptDecryptNullNonce() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -226,7 +226,7 @@ public static void EncryptDecryptNullNonce() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void EncryptDecryptNullPlaintext() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -242,7 +242,7 @@ public static void EncryptDecryptNullPlaintext() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void EncryptDecryptNullCiphertext() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -258,7 +258,7 @@ public static void EncryptDecryptNullCiphertext() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void EncryptDecryptNullTag() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -274,7 +274,7 @@ public static void EncryptDecryptNullTag() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InplaceEncryptDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -295,7 +295,7 @@ public static void InplaceEncryptDecrypt() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InplaceEncryptTamperTagDecrypt() { byte[] key = "d5a194ed90cfe08abecd4691997ceb2c".HexToByteArray(); @@ -320,7 +320,7 @@ public static void InplaceEncryptTamperTagDecrypt() [Theory] [MemberData(nameof(GetNistGcmTestCases))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AesGcmNistTests(AEADTest testCase) { using (var aesGcm = new AesGcm(testCase.Key)) @@ -339,7 +339,7 @@ public static void AesGcmNistTests(AEADTest testCase) [Theory] [MemberData(nameof(GetNistGcmTestCases))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AesGcmNistTestsTamperTag(AEADTest testCase) { using (var aesGcm = new AesGcm(testCase.Key)) @@ -362,7 +362,7 @@ public static void AesGcmNistTestsTamperTag(AEADTest testCase) [Theory] [MemberData(nameof(GetNistGcmTestCasesWithNonEmptyPT))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51332", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AesGcmNistTestsTamperCiphertext(AEADTest testCase) { using (var aesGcm = new AesGcm(testCase.Key)) diff --git a/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs b/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs index f27a8a949f07e1..a766c5fe36688d 100644 --- a/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs +++ b/src/libraries/System.Security.Cryptography.Csp/tests/DSACryptoServiceProviderTests.cs @@ -33,7 +33,7 @@ public static void PublicOnly_DefaultKey() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51331", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51331", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void PublicOnly_WithPrivateKey() { using (var dsa = new DSACryptoServiceProvider()) diff --git a/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs b/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs index a0f4570e7df654..74372351d523ac 100644 --- a/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs +++ b/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs @@ -301,7 +301,7 @@ public static void LookupOidByFriendlyName_Method_BadInput(string badInput) [Fact] [PlatformSpecific(PlatformSupport.OpenSSL)] // Uses P/Invokes to search Oid in the lookup table - [ActiveIssue("https://github.com/dotnet/runtime/issues/51388", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51388", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void LookupOidByValue_Method_OpenSSL() { // This needs to be an OID not in the static lookup table. The purpose is to verify the @@ -315,7 +315,7 @@ public static void LookupOidByValue_Method_OpenSSL() [Fact] [PlatformSpecific(PlatformSupport.OpenSSL)] // Uses P/Invokes to search Oid in the lookup table - [ActiveIssue("https://github.com/dotnet/runtime/issues/51388", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51388", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void LookupOidByFriendlyName_Method_OpenSSL() { // This needs to be a name not in the static lookup table. The purpose is to verify the diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs index e9547b2c6a704c..5e11d908899341 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs @@ -89,7 +89,7 @@ public void Constructor_XmlDocumentAndEvidence() [Theory] [InlineData("System.Security.Cryptography.Xml.Tests.EncryptedXmlSample1.xml")] [InlineData("System.Security.Cryptography.Xml.Tests.EncryptedXmlSample3.xml")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void RsaDecryption(string resourceName) { XmlDocument doc = new XmlDocument(); @@ -246,7 +246,7 @@ public void Encrypt_DecryptDocument_AES() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Encrypt_X509() { XmlDocument doc = new XmlDocument(); @@ -271,7 +271,7 @@ public void Encrypt_X509() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Encrypt_X509_XmlNull() { using (X509Certificate2 certificate = TestHelpers.GetSampleX509Certificate()) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs index 281d74a50d2b1a..73cccbd9f77806 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/EncryptedXmlTests.cs @@ -12,6 +12,7 @@ public static class EncryptedXmlTests { [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/49871", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void DecryptWithCertificate_NotInStore() { const string SecretMessage = "Grilled cheese is tasty"; diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs index d9e9136a7c42b3..9812572ae6abd7 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoTest.cs @@ -133,7 +133,7 @@ public void RetrievalMethod() 0xD9,0xB2,0xAB,0x8A,0x12,0xB6,0x30,0x78,0x68,0x11,0x7C,0x0D,0xF1,0x49,0x4D,0xA3,0xFD,0xB2,0xE9,0xFF,0x1D,0xF0,0x91,0xFA,0x54,0x85,0xFF,0x33,0x90,0xE8,0xC1,0xBF,0xA4,0x9B,0xA4,0x62,0x46,0xBD,0x61,0x12,0x59,0x98,0x41,0x89 }; [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void X509Data() { using (X509Certificate x509 = new X509Certificate(cert)) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs index 7fb6da43a7a54c..cf3092e87ccba6 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/KeyInfoX509DataTest.cs @@ -88,7 +88,7 @@ public void Constructor_X509CertificateByteArray_Null() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Constructor_X509Certificate() { KeyInfoX509Data data1 = new KeyInfoX509Data(); @@ -108,7 +108,7 @@ public void Constructor_X509Certificate() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Constructor_X509Certificate_X509IncludeOption() { KeyInfoX509Data data = new KeyInfoX509Data(new X509Certificate(cert), X509IncludeOption.EndCertOnly); @@ -126,7 +126,7 @@ public void Constructor_X509CertificateNull_X509IncludeOption() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Constructor_X509Certificate_X509IncludeOptionBad() { KeyInfoX509Data data = new KeyInfoX509Data(new X509Certificate(cert), (X509IncludeOption)int.MinValue); @@ -220,7 +220,7 @@ public void AddSubjectName_Null() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Complex() { KeyInfoX509Data data1 = new KeyInfoX509Data(cert); @@ -283,7 +283,7 @@ public void CRL() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ImportX509Data() { string simple = "MIIJuTCCCSKgAwIBAgIQIAs1Xs7EsGO33sY0uXA0RDANBgkqhkiG9w0BAQQFADBiMREwDwYDVQQHEwhJbnRlcm5ldDEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xNDAyBgNVBAsTK1ZlcmlTaWduIENsYXNzIDEgQ0EgLSBJbmRpdmlkdWFsIFN1YnNjcmliZXIwHhcNOTYwODIxMDAwMDAwWhcNOTcwODIwMjM1OTU5WjCCAQoxETAPBgNVBAcTCEludGVybmV0MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE0MDIGA1UECxMrVmVyaVNpZ24gQ2xhc3MgMSBDQSAtIEluZGl2aWR1YWwgU3Vic2NyaWJlcjFGMEQGA1UECxM9d3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5L0NQUyBJbmNvcnAuIGJ5IFJlZi4sTElBQi5MVEQoYyk5NjEmMCQGA1UECxMdRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUxFjAUBgNVBAMTDURhdmlkIFQuIEdyYXkxHjAcBgkqhkiG9w0BCQEWD2RhdmlkQGZvcm1hbC5pZTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDFgQei6w+4//j4HO4y/78SNWr5a8i+L/s+rwRRSqzdECmozUBbZh6Y7/JMd/qPhtEhZ5JESsSJyYPPiJ9v4jI1AgMBAAGjggcIMIIHBDAJBgNVHRMEAjAAMIICHwYDVR0DBIICFjCCAhIwggIOMIICCgYLYIZIAYb4RQEHAQEwggH5FoIBp1RoaXMgY2VydGlmaWNhdGUgaW5jb3Jwb3JhdGVzIGJ5IHJlZmVyZW5jZSwgYW5kIGl0cyB1c2UgaXMgc3RyaWN0bHkgc3ViamVjdCB0bywgdGhlIFZlcmlTaWduIENlcnRpZmljYXRpb24gUHJhY3RpY2UgU3RhdGVtZW50IChDUFMpLCBhdmFpbGFibGUgYXQ6IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9DUFM7IGJ5IEUtbWFpbCBhdCBDUFMtcmVxdWVzdHNAdmVyaXNpZ24uY29tOyBvciBieSBtYWlsIGF0IFZlcmlTaWduLCBJbmMuLCAyNTkzIENvYXN0IEF2ZS4sIE1vdW50YWluIFZpZXcsIENBIDk0MDQzIFVTQSBUZWwuICsxICg0MTUpIDk2MS04ODMwIENvcHlyaWdodCAoYykgMTk5NiBWZXJpU2lnbiwgSW5jLiAgQWxsIFJpZ2h0cyBSZXNlcnZlZC4gQ0VSVEFJTiBXQVJSQU5USUVTIERJU0NMQUlNRUQgYW5kIExJQUJJTElUWSBMSU1JVEVELqAOBgxghkgBhvhFAQcBAQGhDgYMYIZIAYb4RQEHAQECMCwwKhYoaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JlcG9zaXRvcnkvQ1BTIDARBglghkgBhvhCAQEEBAMCB4AwNgYJYIZIAYb4QgEIBCkWJ2h0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5L0NQUzCCBIcGCWCGSAGG+EIBDQSCBHgWggR0Q0FVVElPTjogV"; diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs b/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs index 539d3a94c853d7..ca68ee3e791447 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/Samples/SigningVerifyingX509Cert.cs @@ -59,7 +59,7 @@ private static bool VerifyXml(string signedXmlText, X509Certificate2 certificate } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SignedXmlHasCertificateVerifiableSignature() { using (X509Certificate2 x509cert = TestHelpers.GetSampleX509Certificate()) diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs index 2e140dc95d4161..54caa519ac66bf 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXmlTest.cs @@ -641,7 +641,7 @@ public void GetIdElement_Null() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DigestValue_CRLF() { XmlDocument doc = CreateSomeXml("\r\n"); @@ -701,7 +701,7 @@ public void DigestValue_CRLF() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void DigestValue_LF() { XmlDocument doc = CreateSomeXml("\n"); @@ -761,7 +761,7 @@ public void DigestValue_LF() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SignedXML_CRLF_Invalid() { X509Certificate2 cert = new X509Certificate2(_pkcs12, "mono"); @@ -825,7 +825,7 @@ public void SignedXML_CRLF_Invalid() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SignedXML_CRLF_Valid() { X509Certificate2 cert = new X509Certificate2(_pkcs12, "mono"); @@ -883,7 +883,7 @@ public void SignedXML_CRLF_Valid() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SignedXML_LF_Valid() { X509Certificate2 cert = new X509Certificate2(_pkcs12, "mono"); @@ -941,7 +941,7 @@ public void SignedXML_LF_Valid() } [Fact] // part of bug #79454 - [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51370", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void MultipleX509Certificates() { XmlDocument doc = null; diff --git a/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs b/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs index b9a7eb5174978c..f4860b20cc314f 100644 --- a/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs +++ b/src/libraries/System.Text.Encoding/tests/Encoding/Encoding.cs @@ -68,7 +68,7 @@ public static void GetEncodingsTest() [Theory] [MemberData(nameof(Encoding_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void VerifyCodePageAttributes(int codepage, string name, string bodyName, string headerName, bool isBrowserDisplay, bool isBrowserSave, bool isMailNewsDisplay, bool isMailNewsSave, int windowsCodePage) { @@ -87,7 +87,7 @@ public static void VerifyCodePageAttributes(int codepage, string name, string bo [Theory] [MemberData(nameof(Normalization_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void NormalizationTest(int codepage, bool normalized, bool normalizedC, bool normalizedD, bool normalizedKC, bool normalizedKD) { Encoding encoding = Encoding.GetEncoding(codepage); diff --git a/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs b/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs index 99a316085224aa..608019a68146bb 100644 --- a/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs +++ b/src/libraries/System.Text.Encoding/tests/Encoding/EncodingGetEncodingTests.cs @@ -91,7 +91,7 @@ public CodePageMapping(string name, int codepage) [ActiveIssue("https://github.com/dotnet/runtime/issues/38433", TestPlatforms.Browser)] // wasm doesn't honor runtimeconfig.json [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void TestEncodingNameAndCopdepageNumber() { foreach (var map in s_mapping) @@ -104,7 +104,7 @@ public void TestEncodingNameAndCopdepageNumber() [ActiveIssue("https://github.com/dotnet/runtime/issues/38433", TestPlatforms.Browser)] // wasm doesn't honor runtimeconfig.json [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetEncoding_EncodingName() { using (new ThreadCultureChange(CultureInfo.InvariantCulture)) @@ -126,7 +126,7 @@ public void GetEncoding_EncodingName() [ActiveIssue("https://github.com/dotnet/runtime/issues/38433", TestPlatforms.Browser)] // wasm doesn't honor runtimeconfig.json [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void GetEncoding_WebName() { foreach (var mapping in s_codePageToWebNameMappings) diff --git a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs index 6a1ec5e6f6ea91..c4a549786a30fa 100644 --- a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs +++ b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingEncode.cs @@ -62,7 +62,7 @@ public static IEnumerable Encode_Basic_TestData() [Theory] [MemberData(nameof(Encode_Basic_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Encode_Basic(string source, int index, int count, byte[] expected) { Encode_Advanced(true, source, index, count, expected); diff --git a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs index d680bd5c403467..0cfe89e4411d7a 100644 --- a/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs +++ b/src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingTests.cs @@ -55,7 +55,7 @@ public static IEnumerable Encodings_TestData() [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void WebName(UTF7Encoding encoding) { Assert.Equal("utf-7", encoding.WebName); @@ -64,7 +64,7 @@ public void WebName(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void CodePage(UTF7Encoding encoding) { Assert.Equal(65000, encoding.CodePage); @@ -73,7 +73,7 @@ public void CodePage(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void EncodingName(UTF7Encoding encoding) { Assert.NotEmpty(encoding.EncodingName); // Unicode (UTF-7) in en-US @@ -82,7 +82,7 @@ public void EncodingName(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void IsSingleByte(UTF7Encoding encoding) { Assert.False(encoding.IsSingleByte); @@ -91,7 +91,7 @@ public void IsSingleByte(UTF7Encoding encoding) [Theory] [MemberData(nameof(Encodings_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Clone(UTF7Encoding encoding) { UTF7Encoding clone = (UTF7Encoding)encoding.Clone(); @@ -126,7 +126,7 @@ public static IEnumerable Equals_TestData() [Theory] [MemberData(nameof(Equals_TestData))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50573", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51394", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void EqualsTest(UTF7Encoding encoding, object value, bool expected) { Assert.Equal(expected, encoding.Equals(value)); diff --git a/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs b/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs index abb8e011383a6b..a413c06b3aae93 100644 --- a/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs +++ b/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs @@ -871,7 +871,7 @@ public static IEnumerable Groups_CustomCulture_TestData_AzeriLatin() [MemberData(nameof(Groups_CustomCulture_TestData_Turkish))] [MemberData(nameof(Groups_CustomCulture_TestData_AzeriLatin))] [ActiveIssue("https://github.com/dotnet/runtime/issues/36848", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/36900", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/36900", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Groups(string cultureName, string pattern, string input, RegexOptions options, string[] expectedGroups) { if (cultureName is null) diff --git a/src/libraries/System.Threading/tests/AutoResetEventTests.cs b/src/libraries/System.Threading/tests/AutoResetEventTests.cs index d831e99f90bfcd..f7418857507e93 100644 --- a/src/libraries/System.Threading/tests/AutoResetEventTests.cs +++ b/src/libraries/System.Threading/tests/AutoResetEventTests.cs @@ -87,7 +87,7 @@ public void WaitHandleWaitAny() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void PingPong() { using (AutoResetEvent are1 = new AutoResetEvent(true), are2 = new AutoResetEvent(false)) diff --git a/src/libraries/System.Threading/tests/ExecutionContextTests.cs b/src/libraries/System.Threading/tests/ExecutionContextTests.cs index 0e6e7ce42ecf1a..7e8eb3d6d4cea7 100644 --- a/src/libraries/System.Threading/tests/ExecutionContextTests.cs +++ b/src/libraries/System.Threading/tests/ExecutionContextTests.cs @@ -63,7 +63,7 @@ public static void DisposeTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void FlowTest() { ThreadTestHelpers.RunTestInBackgroundThread(() => @@ -171,7 +171,7 @@ public static void FlowTest() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void CaptureThenSuppressThenRunFlowTest() { ThreadTestHelpers.RunTestInBackgroundThread(() => diff --git a/src/libraries/System.Threading/tests/ManualResetEventTests.cs b/src/libraries/System.Threading/tests/ManualResetEventTests.cs index 65616851211f68..c3d57ae881dcf8 100644 --- a/src/libraries/System.Threading/tests/ManualResetEventTests.cs +++ b/src/libraries/System.Threading/tests/ManualResetEventTests.cs @@ -72,7 +72,7 @@ public void WaitHandleWaitAny() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void PingPong() { using (ManualResetEvent mre1 = new ManualResetEvent(true), mre2 = new ManualResetEvent(false)) diff --git a/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs b/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs index 287bd29e59b8b2..8eb7b253911c16 100644 --- a/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs +++ b/src/libraries/System.Threading/tests/ReaderWriterLockTests.cs @@ -123,7 +123,7 @@ public static void InvalidLockCookieTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void BasicLockTest() { var trwl = new TestReaderWriterLock(); @@ -513,7 +513,7 @@ public static void WaitingReadersTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void WaitingWritersTest() { var trwl = new TestReaderWriterLock(); @@ -546,7 +546,7 @@ public static void WaitingWritersTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ReadersWaitingOnWaitingWriterTest() { var trwl = new TestReaderWriterLock(); @@ -598,7 +598,7 @@ public static void ReadersWaitingOnWaitingWriterTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ReadersWaitingOnWaitingUpgraderTest() { var trwl = new TestReaderWriterLock(); @@ -653,7 +653,7 @@ public static void ReadersWaitingOnWaitingUpgraderTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void WaitingUpgradersTest() { var trwl = new TestReaderWriterLock(); @@ -700,7 +700,7 @@ public static void WaitingUpgradersTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AtomicRecursiveReaderTest() { var trwl = new TestReaderWriterLock(); @@ -728,7 +728,7 @@ public static void AtomicRecursiveReaderTest() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void AtomicDowngradeTest() { var trwl = new TestReaderWriterLock(); diff --git a/src/libraries/System.Threading/tests/SemaphoreTests.cs b/src/libraries/System.Threading/tests/SemaphoreTests.cs index 40fba8123f00cf..9859795025edbe 100644 --- a/src/libraries/System.Threading/tests/SemaphoreTests.cs +++ b/src/libraries/System.Threading/tests/SemaphoreTests.cs @@ -140,7 +140,7 @@ public void Release() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49890", TestPlatforms.Android)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51400", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void AnonymousProducerConsumer() { using (Semaphore s = new Semaphore(0, int.MaxValue)) From b0b1a8c866e0877abeaeb04db59d41d0fc149167 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 10 May 2021 10:05:25 -0400 Subject: [PATCH 67/78] [iOS][tvOS] Remove System.Xml.RW.XmlReader.Tests ActiveIssue 49187 --- .../tests/XmlReader/Tests/AsyncReaderLateInitTests.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs b/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs index c3ccec90cff30e..482014481e8fb4 100644 --- a/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs +++ b/src/libraries/System.Private.Xml/tests/XmlReader/Tests/AsyncReaderLateInitTests.cs @@ -69,7 +69,6 @@ public static void ReadAfterInitializationWithTextReaderOnAsyncReaderDoesNotThro } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ReadAsyncAfterInitializationWithUriThrows() { using (XmlReader reader = XmlReader.Create("http://test.test/test.html", new XmlReaderSettings() { Async = true })) @@ -79,7 +78,6 @@ public static void ReadAsyncAfterInitializationWithUriThrows() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void ReadAfterInitializationWithUriOnAsyncReaderTrows() { using (XmlReader reader = XmlReader.Create("http://test.test/test.html", new XmlReaderSettings() { Async = true })) @@ -89,7 +87,6 @@ public static void ReadAfterInitializationWithUriOnAsyncReaderTrows() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux), nameof(PlatformDetection.IsThreadingSupported))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/18258")] - [ActiveIssue("https://github.com/dotnet/runtime/issues/49187", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void InitializationWithUriOnNonAsyncReaderThrows() { Assert.Throws(() => XmlReader.Create("http://test.test/test.html", new XmlReaderSettings() { Async = false })); From e5d9708273a91f7bc266e706bd93926e166c5c23 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 10 May 2021 10:11:41 -0400 Subject: [PATCH 68/78] [libraries] Undo incorrect SkipOnPlatform change --- .../System.IO.FileSystem/tests/FileStream/LockUnlock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs index 6525212cd8d9ed..bdd41d2c4e6288 100644 --- a/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs +++ b/src/libraries/System.IO.FileSystem/tests/FileStream/LockUnlock.cs @@ -38,7 +38,7 @@ public void FileClosed_Throws() } [Fact] - [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on macOS/iOS/tvOS/MacCatalyst.")] + [PlatformSpecific(TestPlatforms.OSX)] public void LockUnlock_Unsupported_OSX() { string path = GetTestFilePath(); From 287b6aa5ecc43bb5b1ff87bf776d6edbc46d39ad Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Mon, 10 May 2021 21:00:52 -0400 Subject: [PATCH 69/78] Temporarily skip iOS Simulator AOT functional test --- src/libraries/tests.proj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 7b9a46238517fd..886e68dd819aae 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -157,6 +157,8 @@ + + From 755f1f9d523d14128f840bdfaeb241bdd89a7d4b Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 11 May 2021 16:05:09 -0400 Subject: [PATCH 70/78] [iOS][tvOS][libraries] Add System.Threading.Tasks.Tests ActiveIssue 52614 --- src/libraries/System.Threading.Tasks/tests/MethodCoverage.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Threading.Tasks/tests/MethodCoverage.cs b/src/libraries/System.Threading.Tasks/tests/MethodCoverage.cs index e696a38cf924e1..c005e2623511d6 100644 --- a/src/libraries/System.Threading.Tasks/tests/MethodCoverage.cs +++ b/src/libraries/System.Threading.Tasks/tests/MethodCoverage.cs @@ -322,6 +322,7 @@ public static void TaskConfigurableAwaiter() /// FromAsync testing: Not supported in .NET Native /// [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52614", TestPlatforms.iOS | TestPlatforms.tvOS)] public static void FromAsync() { Task emptyTask = new Task(() => { }); From 0dbecd90897ec16812575b22953dd38d39e2385a Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 11 May 2021 16:20:50 -0400 Subject: [PATCH 71/78] [iOS][tvOS] Skip suites crashing on CI that pass locally --- src/libraries/tests.proj | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 886e68dd819aae..99b769b6686792 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -158,12 +158,20 @@ + + + + + + + + From ccd9398fe376dcbd77f9a32840a28abdba7b77b8 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 11 May 2021 16:21:28 -0400 Subject: [PATCH 72/78] [iOS][tvOS] Add System.IO.Compression.ZipFile.Tests ActiveIssue failing on CI but passes locally --- .../System.IO.Compression.ZipFile/tests/ZipFile.Extract.cs | 1 + .../tests/ZipFileExtensions.ZipArchive.Extract.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Extract.cs b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Extract.cs index 9bbfd271d2e474..b71e03f7558b21 100644 --- a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Extract.cs +++ b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Extract.cs @@ -34,6 +34,7 @@ public void ExtractToDirectoryNull() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52616", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ExtractToDirectoryUnicode() { string zipFileName = zfile("unicode.zip"); diff --git a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFileExtensions.ZipArchive.Extract.cs b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFileExtensions.ZipArchive.Extract.cs index e0dfc37788d936..d7b97eb9681d20 100644 --- a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFileExtensions.ZipArchive.Extract.cs +++ b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFileExtensions.ZipArchive.Extract.cs @@ -22,6 +22,7 @@ public void ExtractToDirectoryExtension() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52616", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void ExtractToDirectoryExtension_Unicode() { using (ZipArchive archive = ZipFile.OpenRead(zfile("unicode.zip"))) From e28bbde3ff1e1ac4e94dc302169ef9565e14839a Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 11 May 2021 16:21:44 -0400 Subject: [PATCH 73/78] [iOS][tvOS] Add System.Net.Ping.Functional.Tests ActiveIssue failing on CI but passes locally --- .../tests/FunctionalTests/PingTest.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs b/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs index 5e90cd2512c3e4..74f14a279d395b 100644 --- a/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs +++ b/src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs @@ -125,6 +125,7 @@ public async Task SendPingAsync_InvalidArgs() [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithIPAddress(AddressFamily addressFamily) { IPAddress localIpAddress = TestSettings.GetLocalIPAddress(addressFamily); @@ -145,6 +146,7 @@ public void SendPingWithIPAddress(AddressFamily addressFamily) [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithIPAddress(AddressFamily addressFamily) { IPAddress localIpAddress = await TestSettings.GetLocalIPAddressAsync(addressFamily); @@ -166,6 +168,7 @@ await SendBatchPingAsync( [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithIPAddress_AddressAsString(AddressFamily addressFamily) { IPAddress localIpAddress = TestSettings.GetLocalIPAddress(addressFamily); @@ -184,6 +187,7 @@ public void SendPingWithIPAddress_AddressAsString(AddressFamily addressFamily) } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithIPAddress_AddressAsString() { IPAddress localIpAddress = await TestSettings.GetLocalIPAddressAsync(); @@ -198,6 +202,7 @@ await SendBatchPingAsync( [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithIPAddressAndTimeout() { IPAddress localIpAddress = TestSettings.GetLocalIPAddress(); @@ -211,6 +216,7 @@ public void SendPingWithIPAddressAndTimeout() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithIPAddressAndTimeout() { IPAddress localIpAddress = await TestSettings.GetLocalIPAddressAsync(); @@ -258,6 +264,7 @@ await SendBatchPingAsync( [PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply. [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithIPAddressAndTimeoutAndBuffer_Unix() { byte[] buffer = TestSettings.PayloadAsBytes; @@ -283,6 +290,7 @@ public void SendPingWithIPAddressAndTimeoutAndBuffer_Unix() [PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply. [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithIPAddressAndTimeoutAndBuffer_Unix() { byte[] buffer = TestSettings.PayloadAsBytes; @@ -347,6 +355,7 @@ await SendBatchPingAsync( [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithIPAddressAndTimeoutAndBufferAndPingOptions_Unix(AddressFamily addressFamily) { IPAddress localIpAddress = TestSettings.GetLocalIPAddress(addressFamily); @@ -379,6 +388,7 @@ public void SendPingWithIPAddressAndTimeoutAndBufferAndPingOptions_Unix(AddressF [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(AddressFamily.InterNetwork)] [InlineData(AddressFamily.InterNetworkV6)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithIPAddressAndTimeoutAndBufferAndPingOptions_Unix(AddressFamily addressFamily) { IPAddress localIpAddress = await TestSettings.GetLocalIPAddressAsync(addressFamily); @@ -409,6 +419,7 @@ await SendBatchPingAsync( [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithHost() { IPAddress[] localIpAddresses = TestSettings.GetLocalIPAddresses(); @@ -422,6 +433,7 @@ public void SendPingWithHost() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithHost() { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); @@ -436,6 +448,7 @@ await SendBatchPingAsync( [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithHostAndTimeout() { IPAddress[] localIpAddresses = TestSettings.GetLocalIPAddresses(); @@ -449,6 +462,7 @@ public void SendPingWithHostAndTimeout() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithHostAndTimeout() { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); @@ -496,6 +510,7 @@ await SendBatchPingAsync( [PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply. [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithHostAndTimeoutAndBuffer_Unix() { IPAddress[] localIpAddresses = TestSettings.GetLocalIPAddresses(); @@ -521,6 +536,7 @@ public void SendPingWithHostAndTimeoutAndBuffer_Unix() [PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply. [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithHostAndTimeoutAndBuffer_Unix() { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); @@ -581,6 +597,7 @@ await SendBatchPingAsync( [PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply. [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void SendPingWithHostAndTimeoutAndBufferAndPingOptions_Unix() { IPAddress[] localIpAddresses = TestSettings.GetLocalIPAddresses(); @@ -606,6 +623,7 @@ public void SendPingWithHostAndTimeoutAndBufferAndPingOptions_Unix() [PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply. [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithHostAndTimeoutAndBufferAndPingOptions_Unix() { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); @@ -630,6 +648,7 @@ await SendBatchPingAsync( } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPings_ReuseInstance_Hostname() { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); @@ -646,6 +665,7 @@ public async Task SendPings_ReuseInstance_Hostname() [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task Sends_ReuseInstance_Hostname() { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); @@ -661,6 +681,7 @@ public async Task Sends_ReuseInstance_Hostname() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendAsyncs_ReuseInstance_Hostname() { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); @@ -711,6 +732,7 @@ public async Task SendAsyncs_ReuseInstance_Hostname() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static void Ping_DisposeAfterSend_Success() { Ping p = new Ping(); @@ -719,6 +741,7 @@ public static void Ping_DisposeAfterSend_Success() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public static async Task PingAsync_DisposeAfterSend_Success() { Ping p = new Ping(); @@ -795,6 +818,7 @@ public void CanBeFinalized() [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(true)] [InlineData(false)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public async Task SendPingAsyncWithHostAndTtlAndFragmentPingOptions(bool fragment) { IPAddress[] localIpAddresses = await TestSettings.GetLocalIPAddressesAsync(); From 2aa52ed75de3122502e0d43b6076af6ee620f931 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 11 May 2021 17:42:49 -0400 Subject: [PATCH 74/78] Fix typo --- src/libraries/tests.proj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 99b769b6686792..7a7cb69760c735 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -172,7 +172,7 @@ - + From f01f3cf51d72c8fe42ccc5862764b918ae679ca1 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Tue, 11 May 2021 23:26:22 -0400 Subject: [PATCH 75/78] [iOS][tvOS][macCatalyst] Temporary test suite skips to get checks passing --- src/libraries/tests.proj | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 7a7cb69760c735..33c5a294fecbd1 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -162,6 +162,9 @@ + + + @@ -172,12 +175,23 @@ + + + + + + + + + + + From 31ac47c439970312a5201fcd451240f216db1610 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 12 May 2021 09:21:36 -0400 Subject: [PATCH 76/78] [iOS][tvOS] Add System.IO.Packaging and System.Security.Cryptography.Algorithms test exclusions --- src/libraries/tests.proj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 33c5a294fecbd1..21c306e3a9e999 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -165,6 +165,10 @@ + + + + From 488a6f774a62ea4783989f590a4aae32b4b89843 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 12 May 2021 09:38:12 -0400 Subject: [PATCH 77/78] Fix typo in SkipOnPlatform in System.Runtime.Extensions --- .../System.Runtime.Extensions/tests/System/Environment.Exit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs b/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs index 3c650aece98b2f..0ad14d628fc745 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs @@ -42,7 +42,7 @@ public static void ExitCode_Roundtrips(int exitCode) [InlineData(1)] // setting ExitCode and exiting Main [InlineData(2)] // setting ExitCode both from Main and from an Unloading event handler. [InlineData(3)] // using Exit(exitCode) - [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, ortvOS.")] + [SkipOnPlatform(TestPlatforms.Browser | TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on Browser, iOS, or tvOS.")] [ActiveIssue("https://github.com/dotnet/runtime/issues/49568", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))] [ActiveIssue("https://github.com/dotnet/runtime/issues/49868", TestPlatforms.Android)] public static void ExitCode_VoidMainAppReturnsSetValue(int mode) From fe031a48acd77b8f6062908eadf843be19870a9a Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 12 May 2021 09:38:43 -0400 Subject: [PATCH 78/78] [iOS][tvOS] Add GitHub issue to System.Linq.Expressions.Tests tvOS ActiveIssues --- .../tests/Array/ArrayArrayIndexTests.cs | 5 +---- .../System.Linq.Expressions/tests/Array/ArrayIndexTests.cs | 2 +- .../tests/Array/NullableArrayIndexTests.cs | 3 +-- .../tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs | 2 +- .../tests/Block/NoParameterBlockTests.cs | 2 +- .../System.Linq.Expressions/tests/Cast/CastTests.cs | 5 +---- .../tests/Member/MemberAccessTests.cs | 4 +--- .../tests/SequenceTests/SequenceTests.cs | 2 +- .../System.Linq.Expressions/tests/TypeBinary/TypeIs.cs | 2 +- .../System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs | 2 +- .../System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs | 2 +- 11 files changed, 11 insertions(+), 20 deletions(-) diff --git a/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs index 58419de494db32..9430253687acb5 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/ArrayArrayIndexTests.cs @@ -5,7 +5,7 @@ namespace System.Linq.Expressions.Tests { - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static class ArrayArrayIndexTests { #region Boolean tests @@ -114,7 +114,6 @@ public static void CheckCharArrayArrayIndexTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionCharArrayArrayIndexTest(bool useInterpreter) { // null arrays @@ -146,7 +145,6 @@ public static void CheckCustom2ArrayArrayIndexTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionCustom2ArrayArrayIndexTest(bool useInterpreter) { // null arrays @@ -1018,7 +1016,6 @@ public static void CheckGenericCustomWithClassAndNewRestrictionArrayArrayIndexTe [Theory] [ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionGenericCustomWithClassAndNewRestrictionArrayArrayIndexTest(bool useInterpreter) { CheckExceptionGenericWithClassAndNewRestrictionArrayArrayIndexTestHelper(useInterpreter); diff --git a/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs index 8c7ba48be7e9b4..6eed3897f93d2a 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs @@ -5,7 +5,7 @@ namespace System.Linq.Expressions.Tests { - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static class ArrayIndexTests { #region Boolean tests diff --git a/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs index 1db1148b7a6e69..e0932eef784ee2 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/NullableArrayIndexTests.cs @@ -5,7 +5,7 @@ namespace System.Linq.Expressions.Tests { - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static class NullableArrayIndexTests { #region NullableBool tests @@ -338,7 +338,6 @@ public static void CheckNullableShortArrayIndexTest(bool useInterpreter) } [Theory, ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckExceptionNullableShortArrayIndexTest(bool useInterpreter) { // null arrays diff --git a/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs b/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs index 5821aaccc44c86..4873b7769c3778 100644 --- a/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Arithmetic/BinaryModuloTests.cs @@ -107,7 +107,7 @@ public static void CheckULongModuloTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static void CheckLongModuloTest(bool useInterpreter) { long[] array = new long[] { 0, 1, -1, long.MinValue, long.MaxValue }; diff --git a/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs b/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs index 24c5ac9bb52610..9848e3a86f9185 100644 --- a/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs @@ -292,7 +292,7 @@ public void ResultPropertyFromParams(object value, int blockSize) [Theory] [MemberData(nameof(ConstantValuesAndSizes))] - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public void ResultPropertyFromEnumerable(object value, int blockSize) { ConstantExpression constant = Expression.Constant(value, value.GetType()); diff --git a/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs b/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs index c222ea19f17ee5..bb83b061ec64c6 100644 --- a/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Cast/CastTests.cs @@ -7,7 +7,7 @@ namespace System.Linq.Expressions.Tests { - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static class CastTests { #region Test methods @@ -909,14 +909,12 @@ public static void ConvertObjectCastGenericWithStructRestrictionAsEnum(bool useI } [Theory, ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertObjectCastGenericWithStructRestrictionAsStruct(bool useInterpreter) { CheckObjectCastGenericWithStructRestrictionHelper(useInterpreter); } [Theory, ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertObjectCastGenericWithStructRestrictionAsStructWithStringAndField(bool useInterpreter) { CheckObjectCastGenericWithStructRestrictionHelper(useInterpreter); @@ -1013,7 +1011,6 @@ public static void ConvertValueTypeCastGenericWithStructRestrictionAsEnum(bool u } [Theory, ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void ConvertValueTypeCastGenericWithStructRestrictionAsStruct(bool useInterpreter) { CheckValueTypeCastGenericWithStructRestrictionHelper(useInterpreter); diff --git a/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs b/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs index f23038a90b9b0b..497416457ed07e 100644 --- a/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs @@ -8,7 +8,7 @@ namespace System.Linq.Expressions.Tests { - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static class MemberAccessTests { private class UnreadableIndexableClass @@ -336,7 +336,6 @@ public static void CheckMemberAccessClassStaticPropertyTest(bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckMemberAccessClassInstanceFieldNullReferenceTest(bool useInterpreter) { Expression> e = @@ -369,7 +368,6 @@ public static void CheckMemberAccessClassInstanceFieldAssignNullReferenceTest(bo [Theory] [ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] public static void CheckMemberAccessClassInstancePropertyNullReferenceTest(bool useInterpreter) { Expression> e = diff --git a/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs b/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs index 1045933b3194ac..44f50b5bdf894b 100644 --- a/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs @@ -1486,7 +1486,7 @@ private static S TestConvertChecked(T value, bool useInterpreter) [Theory] [ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static void ConvertNullToInt(bool useInterpreter) { Assert.Throws(() => diff --git a/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs b/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs index 5fb4aff29154b8..f789d71f3b0f40 100644 --- a/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs +++ b/src/libraries/System.Linq.Expressions/tests/TypeBinary/TypeIs.cs @@ -57,7 +57,7 @@ public void CannotReduce() [Theory] [MemberData(nameof(ExpressionAndTypeCombinations))] - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public void TypePropertyMatches(Expression expression, Type type) { Assert.Equal(type, Expression.TypeIs(expression, type).TypeOperand); diff --git a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs index de6673dbfb1568..4cf5c45f2df9a3 100644 --- a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryConvertTests.cs @@ -57,7 +57,7 @@ public static void CheckUnaryConvertBooleanToNumericTest(bool useInterpreter) } [Theory, ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static void ConvertNullToNonNullableValueTest(bool useInterpreter) { foreach (var e in ConvertNullToNonNullableValue()) diff --git a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs index 8d74377e073e7d..184828d0ff46b5 100644 --- a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryUnboxTests.cs @@ -10,7 +10,7 @@ public static class UnaryUnboxTests #region Test methods [Theory, ClassData(typeof(CompilationTypes))] - [ActiveIssue("", TestPlatforms.tvOS)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51952", TestPlatforms.tvOS)] public static void CheckUnaryUnboxTest(bool useInterpreter) { VerifyUnbox(42, typeof(int), false, useInterpreter);