From 59b6df33837e952516e946e6a9dddda6ef48d6f6 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 16 Aug 2021 13:43:18 -0500 Subject: [PATCH] Mark individual tests for 51211 (#57463) --- .../tests/ConfigurationBinderTests.cs | 2 ++ .../System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs | 1 + .../tests/ConstructorInfo/ConstructorInfoTests.cs | 1 + .../Runtime/CompilerServices/RequiredAttributeAttributeTests.cs | 1 + src/libraries/tests.proj | 6 ------ 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/ConfigurationBinderTests.cs b/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/ConfigurationBinderTests.cs index d4014ad..c5dbd9d 100644 --- a/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/ConfigurationBinderTests.cs +++ b/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/ConfigurationBinderTests.cs @@ -401,6 +401,7 @@ namespace Microsoft.Extensions.Configuration.Binder.Test // enum test [InlineData("Constructor", typeof(AttributeTargets))] [InlineData("CA761232-ED42-11CE-BACD-00AA0057B223", typeof(Guid))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void CanReadAllSupportedTypes(string value, Type type) { // arrange @@ -447,6 +448,7 @@ namespace Microsoft.Extensions.Configuration.Binder.Test [InlineData(typeof(TimeSpan))] [InlineData(typeof(AttributeTargets))] [InlineData(typeof(Guid))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void ConsistentExceptionOnFailedBinding(Type type) { // arrange diff --git a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs index 45edc4b..28429f8 100644 --- a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs +++ b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs @@ -25,6 +25,7 @@ namespace System.Reflection.Emit.Tests [InlineData("method", typeof(string), new Type[] { typeof(char?) })] [InlineData("Method", typeof(string), new Type[] { typeof(GenericClass2<,>), typeof(GenericClass2<,>) })] [InlineData("Method", typeof(string), new Type[] { typeof(TestInterface) })] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void String_Type_TypeArray_Module(string name, Type returnType, Type[] parameterTypes) { Module module = typeof(TestClass).GetTypeInfo().Module; diff --git a/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs b/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs index 5ce72be..fdeb799a 100644 --- a/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs +++ b/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs @@ -80,6 +80,7 @@ namespace System.Reflection.Tests [Theory] [InlineData(typeof(ConstructorInfoInvoke), new Type[] { typeof(int) })] [InlineData(typeof(string), new Type[] { typeof(char), typeof(int) })] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void Properties(Type type, Type[] typeParameters) { ConstructorInfo constructor = TypeExtensions.GetConstructor(type, typeParameters); diff --git a/src/libraries/System.Runtime.CompilerServices.VisualC/tests/System/Runtime/CompilerServices/RequiredAttributeAttributeTests.cs b/src/libraries/System.Runtime.CompilerServices.VisualC/tests/System/Runtime/CompilerServices/RequiredAttributeAttributeTests.cs index e1788cd..75c6897 100644 --- a/src/libraries/System.Runtime.CompilerServices.VisualC/tests/System/Runtime/CompilerServices/RequiredAttributeAttributeTests.cs +++ b/src/libraries/System.Runtime.CompilerServices.VisualC/tests/System/Runtime/CompilerServices/RequiredAttributeAttributeTests.cs @@ -10,6 +10,7 @@ namespace System.Runtime.CompilerServices.Tests [Theory] [InlineData(null)] [InlineData(typeof(int))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void Ctor_RequiredContract(Type requiredContract) { var attribute = new RequiredAttributeAttribute(requiredContract); diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 5e8f9b5..1673ba2 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -243,12 +243,6 @@ - - - - - - -- 2.7.4