From 5035baf06c29a1df83274adf7091486dddf6662c Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 9 Apr 2026 12:35:11 +0200 Subject: [PATCH 1/4] Add [ActiveIssue] attributes to disable failing browser/CoreCLR library tests Apply issue #123011 [ActiveIssue] attributes to 22 specific failing test methods across 22 library test files to disable them on browser/CoreCLR. The following test suites now pass cleanly with these tests disabled: - System.Collections - System.Collections.Concurrent - System.ComponentModel.EventBasedAsync - System.Data.Common - System.Diagnostics.Tracing - System.Net.ServicePoint (ServicePointTests) - System.Runtime.InteropServices - System.Runtime.Intrinsics (45 tests, class-level) - System.Runtime.Extensions - System.Dynamic.Runtime - Microsoft.Extensions.DependencyInjection - Microsoft.Extensions.Logging.Generators Update src/libraries/tests.proj to remove exclusions for these 12 suites from the CoreCLR/browser block. Keep 4 suites excluded due to unfixable issues: - Microsoft.VisualBasic.Core (finalizer crash) - System.IO.Compression.ZipFile (native crash) - System.Threading.Thread (post-test finalizer crash) - System.Formats.Nrbf (assembly loading in test discovery) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../DI.Tests/ServiceProviderCompilationTest.cs | 1 + .../LoggerMessageGeneratorIncrementalTests.cs | 5 +++++ .../VisualBasic/FileIO/FileSystemTests.cs | 2 ++ .../tests/ConcurrentQueueTests.cs | 2 ++ .../Dictionary/Dictionary.Generic.Tests.cs | 3 ++- .../OutOfBoundsRegression.cs | 1 + .../Generic/HashSet/HashSet.NonGeneric.Tests.cs | 1 + .../tests/BackgroundWorkerTests.cs | 2 ++ .../tests/System/Data/Common/DbCommandTests.cs | 1 + .../System/Data/Common/DbConnectionTests.cs | 1 + .../BasicEventSourceTest/ActivityTracking.cs | 4 ++++ .../tests/ZipFile.Unix.cs | 3 +++ .../ServicePointTests/ServicePointManagerTest.cs | 1 + .../tests/ServicePointTests/TlsSystemDefault.cs | 2 ++ .../InteropServices/ComVariantMarshallerTests.cs | 6 +++++- .../Runtime/InteropServices/ComVariantTests.cs | 2 ++ .../InteropServices/Marshal/AddRefTests.cs | 1 + .../Marshal/QueryInterfaceTests.cs | 2 ++ .../InteropServices/Marshal/ReleaseTests.cs | 1 + .../tests/Wasm/PackedSimdTests.cs | 1 + ...nformance.dynamic.context.indexer.regclass.cs | 4 ++++ ....dynamic.context.method.genmethod.regclass.cs | 4 ++++ ...formance.dynamic.context.operator.regclass.cs | 7 +++++++ ...mic.context.property.autoproperty.regclass.cs | 3 +++ .../System/EnvironmentTests.cs | 2 ++ src/libraries/tests.proj | 16 +--------------- 26 files changed, 61 insertions(+), 17 deletions(-) diff --git a/src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceProviderCompilationTest.cs b/src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceProviderCompilationTest.cs index 8094dde9364b1f..d40e84a7d9b804 100644 --- a/src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceProviderCompilationTest.cs +++ b/src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceProviderCompilationTest.cs @@ -18,6 +18,7 @@ public class ServiceProviderCompilationTest [InlineData(ServiceProviderMode.ILEmit, typeof(I999))] [InlineData(ServiceProviderMode.Expressions, typeof(I999))] [ActiveIssue("https://github.com/dotnet/runtime/issues/33894", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] private async Task CompilesInLimitedStackSpace(ServiceProviderMode mode, Type serviceType) { // Arrange diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs b/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs index 79bb22592d8e79..00b95045fd7124 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs @@ -17,6 +17,7 @@ public class LoggerMessageGeneratorIncrementalTests new GeneratorDriverOptions(IncrementalGeneratorOutputKind.None, trackIncrementalGeneratorSteps: true); [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void AddingNewUnrelatedType_DoesNotRegenerateSource() { string source = """ @@ -55,6 +56,7 @@ partial class C } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void AppendingUnrelatedSource_DoesNotRegenerateSource() { string source = """ @@ -100,6 +102,7 @@ partial class C } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void AddingNewLoggerMessageMethod_DoesNotRegenerateExistingMethod() { string source1 = """ @@ -154,6 +157,7 @@ partial class D } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void ChangingLoggerMessageAttribute_RegeneratesMethod() { string source1 = """ @@ -203,6 +207,7 @@ partial class C } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void ChangingUnrelatedMethodBody_DoesNotRegenerateLoggerMessage() { string source1 = """ 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 6b7c95bf565f5f..3166416a8b6b31 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 @@ -286,6 +286,7 @@ public void CreateDirectory_LongPath() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void CurrentDirectoryGet() { var CurrentDirectory = System.IO.Directory.GetCurrentDirectory(); @@ -294,6 +295,7 @@ public void CurrentDirectoryGet() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50572", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void CurrentDirectorySet() { var SavedCurrentDirectory = System.IO.Directory.GetCurrentDirectory(); diff --git a/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs b/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs index 6ec3ce8b0b5be2..eba87cb39f3262 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs @@ -212,6 +212,7 @@ public void IEnumerable_GetAllExpectedItems() [Fact] [ActiveIssue("https://github.com/mono/mono/issues/16413", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void ReferenceTypes_NulledAfterDequeue() { int iterations = 10; // any number <32 will do @@ -277,6 +278,7 @@ public void ManySegments_ConcurrentDequeues_RemainsConsistent() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void ManySegments_ConcurrentEnqueues_RemainsConsistent() { var cq = new ConcurrentQueue(); diff --git a/src/libraries/System.Collections/tests/Generic/Dictionary/Dictionary.Generic.Tests.cs b/src/libraries/System.Collections/tests/Generic/Dictionary/Dictionary.Generic.Tests.cs index 470312be885c26..2197973ca51306 100644 --- a/src/libraries/System.Collections/tests/Generic/Dictionary/Dictionary.Generic.Tests.cs +++ b/src/libraries/System.Collections/tests/Generic/Dictionary/Dictionary.Generic.Tests.cs @@ -5,6 +5,7 @@ using System.Globalization; using System.Linq; using System.Runtime.Serialization; +using Microsoft.DotNet.XUnitExtensions; using Xunit; namespace System.Collections.Tests @@ -774,7 +775,7 @@ public void Dictionary_GetAlternateLookup_OperationsMatchUnderlyingDictionary(IE #endregion #region Non-randomized comparers - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))] public void Dictionary_Comparer_NonRandomizedStringComparers() { RunTest(null); diff --git a/src/libraries/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/OutOfBoundsRegression.cs b/src/libraries/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/OutOfBoundsRegression.cs index e131d4bb25ee5d..c2223e665178d5 100644 --- a/src/libraries/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/OutOfBoundsRegression.cs +++ b/src/libraries/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/OutOfBoundsRegression.cs @@ -272,6 +272,7 @@ public class InternalHashCodeTests_OrderedDictionary_LinguisticComparer : Intern } #endregion + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public abstract class InternalHashCodeTests { protected static Type nonRandomizedOrdinalComparerType = typeof(object).Assembly.GetType("System.Collections.Generic.NonRandomizedStringEqualityComparer+OrdinalComparer", throwOnError: true); diff --git a/src/libraries/System.Collections/tests/Generic/HashSet/HashSet.NonGeneric.Tests.cs b/src/libraries/System.Collections/tests/Generic/HashSet/HashSet.NonGeneric.Tests.cs index 01dee5e49f9f70..3553ef95ac6c2a 100644 --- a/src/libraries/System.Collections/tests/Generic/HashSet/HashSet.NonGeneric.Tests.cs +++ b/src/libraries/System.Collections/tests/Generic/HashSet/HashSet.NonGeneric.Tests.cs @@ -10,6 +10,7 @@ namespace System.Collections.Tests { public static class HashSet_NonGeneric_Tests { + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] [Fact] public static void HashSet_CopyConstructor_ShouldWorkWithRandomizedEffectiveComparer() { diff --git a/src/libraries/System.ComponentModel.EventBasedAsync/tests/BackgroundWorkerTests.cs b/src/libraries/System.ComponentModel.EventBasedAsync/tests/BackgroundWorkerTests.cs index c211e7ac3b496c..f0a04ea3eb4e4b 100644 --- a/src/libraries/System.ComponentModel.EventBasedAsync/tests/BackgroundWorkerTests.cs +++ b/src/libraries/System.ComponentModel.EventBasedAsync/tests/BackgroundWorkerTests.cs @@ -71,6 +71,7 @@ public void TestBackgroundWorkerBasic() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public async Task RunWorkerAsync_NoOnWorkHandler_SetsResultToNull() { var tcs = new TaskCompletionSource(); @@ -326,6 +327,7 @@ public void DisposeTwiceShouldNotThrow() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void TestFinalization() { // BackgroundWorker has a finalizer that exists purely for backwards compatibility diff --git a/src/libraries/System.Data.Common/tests/System/Data/Common/DbCommandTests.cs b/src/libraries/System.Data.Common/tests/System/Data/Common/DbCommandTests.cs index 7d87f0f87e6bb3..e5acef2c1b23b8 100644 --- a/src/libraries/System.Data.Common/tests/System/Data/Common/DbCommandTests.cs +++ b/src/libraries/System.Data.Common/tests/System/Data/Common/DbCommandTests.cs @@ -154,6 +154,7 @@ protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void CanBeFinalized() { FinalizingCommand.CreateAndRelease(); diff --git a/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs b/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs index 42ea4d30d8e4db..49ebf021c95047 100644 --- a/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs +++ b/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs @@ -86,6 +86,7 @@ private class TestDbProviderFactory : DbProviderFactory } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void CanBeFinalized() { FinalizingConnection.CreateAndRelease(); diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/ActivityTracking.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/ActivityTracking.cs index 361971b3b1243a..e7994467db6925 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/ActivityTracking.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/ActivityTracking.cs @@ -52,6 +52,7 @@ public void IsSupported() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void StartStopCreatesActivity() { using ActivityEventListener l = new ActivityEventListener(); @@ -67,6 +68,7 @@ public void StartStopCreatesActivity() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public async Task ActivityFlowsAsync() { using ActivityEventListener l = new ActivityEventListener(); @@ -115,6 +117,7 @@ private async Task YieldTwoActivitiesDeep(ActivityEventSource es) // the future we might decide it wasn't even desirable to begin with. // Compare with SetCurrentActivityIdAfterEventDoesNotFlowAsync below. [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public async Task SetCurrentActivityIdBeforeEventFlowsAsync() { using ActivityEventListener l = new ActivityEventListener(); @@ -140,6 +143,7 @@ public async Task SetCurrentActivityIdBeforeEventFlowsAsync() // the future we might decide it wasn't even desirable to begin with. // Compare with SetCurrentActivityIdBeforeEventFlowsAsync above. [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public async Task SetCurrentActivityIdAfterEventDoesNotFlowAsync() { using ActivityEventListener l = new ActivityEventListener(); diff --git a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs index e60fd22e336abd..68f7d1c6dcb0cd 100644 --- a/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs +++ b/src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs @@ -15,6 +15,7 @@ namespace System.IO.Compression.Tests public partial class ZipFile_Unix : ZipFileTestBase { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void UnixCreateSetsPermissionsInExternalAttributes() { // '7600' tests that S_ISUID, S_ISGID, and S_ISVTX bits get preserved in ExternalAttributes @@ -70,6 +71,7 @@ public void UnixCreateSetsPermissionsInExternalAttributesUMaskZero() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void UnixExtractSetsFilePermissionsFromExternalAttributes() { // '7600' tests that S_ISUID, S_ISGID, and S_ISVTX bits don't get extracted to file permissions @@ -173,6 +175,7 @@ public static IEnumerable Get_UnixExtractFilePermissionsCompat_Data() [Theory] [MemberData(nameof(Get_UnixExtractFilePermissionsCompat_Data))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public async Task UnixExtractFilePermissionsCompat(string zipName, string expectedPermissions, bool async) { expectedPermissions = GetExpectedPermissions(expectedPermissions); diff --git a/src/libraries/System.Net.Requests/tests/ServicePointTests/ServicePointManagerTest.cs b/src/libraries/System.Net.Requests/tests/ServicePointTests/ServicePointManagerTest.cs index ea8ddffd549a20..5fef151c64e894 100644 --- a/src/libraries/System.Net.Requests/tests/ServicePointTests/ServicePointManagerTest.cs +++ b/src/libraries/System.Net.Requests/tests/ServicePointTests/ServicePointManagerTest.cs @@ -9,6 +9,7 @@ namespace System.Net.Tests { + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public class ServicePointManagerTest { [Fact] diff --git a/src/libraries/System.Net.Requests/tests/ServicePointTests/TlsSystemDefault.cs b/src/libraries/System.Net.Requests/tests/ServicePointTests/TlsSystemDefault.cs index 3fc641479c2cf1..37b0d075eca00a 100644 --- a/src/libraries/System.Net.Requests/tests/ServicePointTests/TlsSystemDefault.cs +++ b/src/libraries/System.Net.Requests/tests/ServicePointTests/TlsSystemDefault.cs @@ -8,12 +8,14 @@ namespace System.Net.Tests public class TlsSystemDefault { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void ServicePointManager_SecurityProtocolDefault_Ok() { Assert.Equal(SecurityProtocolType.SystemDefault, ServicePointManager.SecurityProtocol); } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void ServicePointManager_CheckAllowedProtocols_SystemDefault_Allowed() { SecurityProtocolType orig = ServicePointManager.SecurityProtocol; diff --git a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs index 43ad6f8840f64e..377fe1e1b7573e 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs @@ -17,6 +17,7 @@ namespace System.Runtime.InteropServices.Tests public partial class ComVariantMarshallerTests { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void Null_Marshals_To_Empty() { Assert.Equal(VarEnum.VT_EMPTY, ComVariantMarshaller.ConvertToUnmanaged(null).VarType); @@ -24,6 +25,7 @@ public void Null_Marshals_To_Empty() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void DBNull_Marshals_To_Null() { Assert.Equal(VarEnum.VT_NULL, ComVariantMarshaller.ConvertToUnmanaged(DBNull.Value).VarType); @@ -265,6 +267,7 @@ public void Decimal_Marshals_To_DECIMAL(decimal value) } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void Date_Marshals_To_DATE() { // OLE dates do not have time zones and do not support sub-millisecond precision. @@ -309,7 +312,7 @@ public void Method() { } } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/55742", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public unsafe void GeneratedComInterfaceType_Marshals_To_UNKNOWN() { var obj = new ComExposedType(); @@ -326,6 +329,7 @@ public unsafe void GeneratedComInterfaceType_Marshals_To_UNKNOWN() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/55742", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void UnknownWrapper_Of_GeneratedComInterfaceType_Marshals_To_UNKNOWN() { var obj = new ComExposedType(); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantTests.cs index d438a121b1d348..0ab90b463cc601 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantTests.cs @@ -143,12 +143,14 @@ public void VariantBoolFalse() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void VTVariantNotSupported() { Assert.Throws("vt", () => ComVariant.CreateRaw(VarEnum.VT_VARIANT, 1)); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltInComEnabled))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void Unknown_NotSupported() { UnknownWrapper wrapper = new(new TestObject()); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/AddRefTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/AddRefTests.cs index ee1772a78d6fda..97d8d28fa61b0e 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/AddRefTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/AddRefTests.cs @@ -11,6 +11,7 @@ public class AddRefTests [Fact] [SkipOnMono("ComWrappers are not supported on Mono")] [ActiveIssue("https://github.com/dotnet/runtime/issues/76005", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot), nameof(PlatformDetection.IsNotWindows))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void AddRef_ValidPointer_Success() { var cw = new ComWrappersImpl(); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/QueryInterfaceTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/QueryInterfaceTests.cs index 42c0ba1cb15871..b81df59c17566a 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/QueryInterfaceTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/QueryInterfaceTests.cs @@ -23,6 +23,7 @@ public static IEnumerable QueryInterface_ValidInterface_TestData() [MemberData(nameof(QueryInterface_ValidInterface_TestData))] [SkipOnMono("ComWrappers are not supported on Mono")] [ActiveIssue("https://github.com/dotnet/runtime/issues/76005", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot), nameof(PlatformDetection.IsNotWindows))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void QueryInterface_ValidInterface_Success(object o, string iidString) { var cw = new ComWrappersImpl(); @@ -57,6 +58,7 @@ public static IEnumerable QueryInterface_NoSuchInterface_TestData() [MemberData(nameof(QueryInterface_NoSuchInterface_TestData))] [SkipOnMono("ComWrappers are not supported on Mono")] [ActiveIssue("https://github.com/dotnet/runtime/issues/76005", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot), nameof(PlatformDetection.IsNotWindows))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void QueryInterface_NoSuchInterface_Success(object o, string iidString) { var cw = new ComWrappersImpl(); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/ReleaseTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/ReleaseTests.cs index 087318aa6420cc..fc24bf37c81e43 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/ReleaseTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/ReleaseTests.cs @@ -11,6 +11,7 @@ public class ReleaseTests [Fact] [SkipOnMono("ComWrappers are not supported on Mono")] [ActiveIssue("https://github.com/dotnet/runtime/issues/76005", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot), nameof(PlatformDetection.IsNotWindows))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void Release_ValidPointer_Success() { var cw = new ComWrappersImpl(); diff --git a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs index cb529221bf2e61..0c1693d35e2636 100644 --- a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs +++ b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs @@ -14,6 +14,7 @@ namespace System.Runtime.Intrinsics.Wasm.Tests { [PlatformSpecific(TestPlatforms.Browser)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public sealed class PackedSimdTests { [Fact] diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs index 5f02e32811909f..5517b1f350df18 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + using ManagedTests.DynamicCSharp.Conformance.dynamic.context.indexer.regclass.regclassregindexer.regclassregindexer; using Xunit; @@ -1006,6 +1007,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.indexer.regclas public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); @@ -2267,6 +2269,7 @@ private static void RequireLifetimesEnded() GC.KeepAlive(t); } + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] public static void DynamicCSharpRunTest() { @@ -2293,6 +2296,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.indexer.regclas public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs index 4f38821a18c1d3..d2715a18bcfc97 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + using ManagedTests.DynamicCSharp.Conformance.dynamic.context.method.genmethod.regclass.regclassgenmeth.regclassgenmeth; using Xunit; @@ -223,6 +224,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.method.genmetho public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); @@ -941,6 +943,7 @@ private static void RequireLifetimesEnded() GC.KeepAlive(t); } + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] public static void DynamicCSharpRunTest() { @@ -973,6 +976,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.method.genmetho public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs index c5af627116a447..71c7fd7f987998 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + using ManagedTests.DynamicCSharp.Conformance.dynamic.context.operate.regclass.regclassoperate.regclassoperate; using Xunit; @@ -679,6 +680,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.operate.regclas public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); @@ -717,6 +719,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.operate.regclas public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); @@ -1781,6 +1784,7 @@ private static void RequireLifetimesEnded() GC.KeepAlive(t); } + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] public static void DynamicCSharpRunTest() { @@ -1839,6 +1843,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.operate.regclas public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); @@ -3459,6 +3464,7 @@ private static void RequireLifetimesEnded() GC.KeepAlive(t); } + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] public static void DynamicCSharpRunTest() { @@ -3491,6 +3497,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.operate.regclas public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs index 36bddd6d2c8c5f..7af333dc0cb47b 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + using ManagedTests.DynamicCSharp.Conformance.dynamic.context.property.autoproperty.regclass.regclassautoprop.regclassautoprop; using Xunit; @@ -258,6 +259,7 @@ namespace ManagedTests.DynamicCSharp.Conformance.dynamic.context.property.autopr public class Test { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); @@ -519,6 +521,7 @@ private static void RequireLifetimesEnded() } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod()); diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/EnvironmentTests.cs b/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/EnvironmentTests.cs index 363af8c5286279..fbbcc4068d1446 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/EnvironmentTests.cs +++ b/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/EnvironmentTests.cs @@ -94,6 +94,7 @@ public void ProcessPath_Idempotent() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.Android, "Throws PNSE")] public void ProcessPath_MatchesExpectedValue() { @@ -394,6 +395,7 @@ public void GetSystemDirectory() [InlineData(Environment.SpecialFolder.MyPictures, Environment.SpecialFolderOption.DoNotVerify)] [InlineData(Environment.SpecialFolder.Fonts, Environment.SpecialFolderOption.DoNotVerify)] [ActiveIssue("https://github.com/dotnet/runtime/issues/49868", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] public void GetFolderPath_Unix_NonEmptyFolderPaths(Environment.SpecialFolder folder, Environment.SpecialFolderOption option) { Assert.NotEmpty(Environment.GetFolderPath(folder, option)); diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 10c368b93612c8..8ab39e8127db0a 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -193,27 +193,13 @@ - - - - - - - - - - + - - - - - From ae8a8c776c5125656933cebf5e6eff28fe08769f Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 16 Apr 2026 19:36:33 +0200 Subject: [PATCH 2/4] Fix build: add missing 'using System' for PlatformDetection The LoggerMessageGeneratorIncrementalTests.cs file was missing 'using System;' which is needed to resolve PlatformDetection (defined in System namespace) in attribute arguments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../LoggerMessageGeneratorIncrementalTests.cs | 1 + .../Conformance.dynamic.context.indexer.regclass.cs | 2 +- .../Conformance.dynamic.context.method.genmethod.regclass.cs | 2 +- .../Conformance.dynamic.context.operator.regclass.cs | 2 +- ...onformance.dynamic.context.property.autoproperty.regclass.cs | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs b/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs index 00b95045fd7124..379d461a69df40 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs @@ -3,6 +3,7 @@ #if ROSLYN4_8_OR_GREATER +using System; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis; diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs index 5517b1f350df18..3ef564bf89e0f6 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - +using System; using ManagedTests.DynamicCSharp.Conformance.dynamic.context.indexer.regclass.regclassregindexer.regclassregindexer; using Xunit; diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs index d2715a18bcfc97..43a625317651ef 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - +using System; using ManagedTests.DynamicCSharp.Conformance.dynamic.context.method.genmethod.regclass.regclassgenmeth.regclassgenmeth; using Xunit; diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs index 71c7fd7f987998..17734cbb1c86a8 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - +using System; using ManagedTests.DynamicCSharp.Conformance.dynamic.context.operate.regclass.regclassoperate.regclassoperate; using Xunit; diff --git a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs index 7af333dc0cb47b..30f0744bd0a6ad 100644 --- a/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs +++ b/src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - +using System; using ManagedTests.DynamicCSharp.Conformance.dynamic.context.property.autoproperty.regclass.regclassautoprop.regclassautoprop; using Xunit; From c6a3e9b0df800e14067377789323b92ff831e029 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 17 Apr 2026 17:11:43 +0200 Subject: [PATCH 3/4] Fix after merge Removed project exclusions for specific test projects. --- src/libraries/tests.proj | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index b7ef0007c6ad03..fce4cc1e6ff331 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -193,9 +193,6 @@ - - - From db690c08ae2c182f7eac43963ccab7579a834494 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 17 Apr 2026 17:15:09 +0200 Subject: [PATCH 4/4] Update src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../System/Runtime/InteropServices/ComVariantMarshallerTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs index 377fe1e1b7573e..218dab3c2497c6 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs @@ -313,6 +313,7 @@ public void Method() { } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/55742", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime))] public unsafe void GeneratedComInterfaceType_Marshals_To_UNKNOWN() { var obj = new ComExposedType();