Annotate test with IsPreciseGcSupported (#86869)
authorJan Kotas <jkotas@microsoft.com>
Tue, 30 May 2023 03:07:56 +0000 (20:07 -0700)
committerGitHub <noreply@github.com>
Tue, 30 May 2023 03:07:56 +0000 (20:07 -0700)
Fixes #86861

src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/PosixSignalRegistrationTests.Unix.cs

index 0fd5420..6e488b7 100644 (file)
@@ -139,7 +139,7 @@ namespace System.Tests
             Thread.Sleep(100);
         }
 
-        [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotMobile))]
+        [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotMobile), nameof(PlatformDetection.IsPreciseGcSupported))]
         public void SignalHandlerNotCalledWhenFinalized()
         {
             PosixSignal signal = PosixSignal.SIGCONT;