diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs index 0145acfb9aecd8..aa57a823d25cf0 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs @@ -652,6 +652,7 @@ public static IEnumerable Ctor_Async_TestData() } [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsRuntimeAsyncSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] [MemberData(nameof(Ctor_Async_TestData))] [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)] public async Task ToString_Async(Func asyncMethod, string[] expectedPatterns) diff --git a/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs b/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs index 9a717078bc1741..319ad51f0eeb00 100644 --- a/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs +++ b/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs @@ -33,6 +33,7 @@ static void CreateAndLoadContext(CollectibleChecker checker, bool unloadTwice = [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithNoAssemblyLoaded() { // Use a collectible ALC + Unload @@ -45,6 +46,7 @@ public static void Unload_CollectibleWithNoAssemblyLoaded() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void DoubleUnload_CollectibleWithNoAssemblyLoaded() { // Use a collectible ALC + Unload @@ -127,6 +129,7 @@ class CollectibleWithOneAssemblyLoadedTest : TestBase [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithOneAssemblyLoaded() { // Use a collectible ALC + Load an assembly by path + Unload @@ -154,6 +157,7 @@ public void Execute() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithOneAssemblyLoadedWithStatic() { // Use a collectible ALC + Load an assembly by path + New Instance + Static reference + Unload @@ -186,6 +190,7 @@ public void CheckInstanceUnloaded() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithOneAssemblyLoadedWithWeakReferenceToType() { // Use a collectible ALC + Load an assembly by path + WeakReference on the Type + Unload @@ -220,6 +225,7 @@ public void CheckInstanceUnloaded() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithOneAssemblyLoadedWithWeakReferenceToInstance() { // Use a collectible ALC + Load an assembly by path + WeakReference on an instance of a Type + Unload @@ -272,6 +278,7 @@ public void CheckTypeUnloaded() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithOneAssemblyLoadedWithStrongReferenceToType() { // Use a collectible ALC + Load an assembly by path + Strong reference on the Type + Unload @@ -333,6 +340,7 @@ public void CheckInstanceUnloaded() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithOneAssemblyLoadedWithStrongReferenceToInstance() { // Use a collectible ALC + Load an assembly by path + Strong reference on an instance of a Type + Unload @@ -367,6 +375,7 @@ public void Execute() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_CollectibleWithTwoAssemblies() { // Use a collectible ALC + Load two assemblies (path + stream) + Unload @@ -428,6 +437,7 @@ public void CheckContextUnloaded2() [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_TwoCollectibleWithOneAssemblyAndOneInstanceReferencingAnother() { // We create 2 collectible ALC, load one assembly in each, create one instance in each, reference one instance from ALC1 to ALC2 @@ -497,6 +507,7 @@ public void CheckContextUnloaded2() // Test may fail when running on a different runtime [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] public static void Unload_TwoCollectibleWithOneAssemblyAndOneInstanceReferencingAnotherThroughGenericStatic() { // We create 2 collectible ALC, load one assembly in each, create one instance in the ALC2, diff --git a/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/FileStream/Dispose.cs b/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/FileStream/Dispose.cs index 803ebbb5edd6e5..e4fe6560cbacd3 100644 --- a/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/FileStream/Dispose.cs +++ b/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/FileStream/Dispose.cs @@ -169,7 +169,7 @@ public void Dispose_CallsVirtualDispose_TrueArg() Assert.False(disposeInvoked, "Expected finalizer to have been suppressed"); } - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void Finalizer_CallsVirtualDispose_FalseArg() { bool disposeInvoked = false; @@ -345,24 +345,24 @@ public void VerifyAfterDispose() } } - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void FinalizeFlushesWriteBuffer() => VerifyFlushedBufferOnFinalization( filePath => new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.ReadWrite | FileShare.Delete, bufferSize: 4096, useAsync: false)); - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void FinalizeFlushesWriteBufferForDerivedFileStreamWithFinalizerCreatedFromPath() => VerifyFlushedBufferOnFinalization( filePath => new DerivedFileStreamWithFinalizer(filePath, FileMode.Create, FileAccess.Write, FileShare.ReadWrite | FileShare.Delete, bufferSize: 4096, FileOptions.None)); - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void FinalizeFlushesWriteBufferForDerivedFileStreamWithFinalizerCreatedFromSafeFileHandle() => VerifyFlushedBufferOnFinalization( filePath => new DerivedFileStreamWithFinalizer( File.OpenHandle(filePath, FileMode.Create, FileAccess.Write, FileShare.ReadWrite | FileShare.Delete, FileOptions.None), FileAccess.Write, bufferSize: 4096, isAsync: false)); - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void FinalizeFlushesWriteBufferForDerivedFileStreamWithFinalizerCreatedFromIntPtr() => VerifyFlushedBufferOnFinalization( filePath => new DerivedFileStreamWithFinalizer( @@ -370,19 +370,19 @@ public void FinalizeFlushesWriteBufferForDerivedFileStreamWithFinalizerCreatedFr FileAccess.Write, ownsHandle: true)); - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void FinalizeFlushesWriteBufferForDerivedFileStreamWithoutFinalizerCreatedFromPath() => VerifyFlushedBufferOnFinalization( filePath => new DerivedFileStreamWithoutFinalizer(filePath, FileMode.Create, FileAccess.Write, FileShare.ReadWrite | FileShare.Delete, bufferSize: 4096, FileOptions.None)); - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void FinalizeFlushesWriteBufferForDerivedFileStreamWithoutFinalizerCreatedFromSafeFileHandle() => VerifyFlushedBufferOnFinalization( filePath => new DerivedFileStreamWithoutFinalizer( File.OpenHandle(filePath, FileMode.Create, FileAccess.Write, FileShare.ReadWrite | FileShare.Delete, FileOptions.None), FileAccess.Write, bufferSize: 4096, isAsync: false)); - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported), nameof(PlatformDetection.IsNotBrowser))] public void FinalizeFlushesWriteBufferForDerivedFileStreamWithoutFinalizerCreatedFromIntPtr() => VerifyFlushedBufferOnFinalization( filePath => new DerivedFileStreamWithoutFinalizer( diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index e652997a3d5ef1..c935f3a2b57692 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -183,15 +183,8 @@ - + - - - - - - -