Skip to content

Commit

Permalink
Skip finalizer test if precise GC is not supported (dotnet#56364)
Browse files Browse the repository at this point in the history
* Finalizer_OperationNotCompleted_CompletesOperation assumes precise GC
  • Loading branch information
uweigand authored Jul 27, 2021
1 parent 34094b3 commit 6a5eaed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ private void Completed()
Assert.True(tracker.OperationDidComplete);
}

[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
private static bool IsPreciseGcSupportedAndRemoteExecutorSupported => PlatformDetection.IsPreciseGcSupported && RemoteExecutor.IsSupported;

[ConditionalFact(nameof(IsPreciseGcSupportedAndRemoteExecutorSupported))]
public void Finalizer_OperationNotCompleted_CompletesOperation()
{
RemoteExecutor.Invoke(() =>
Expand Down

0 comments on commit 6a5eaed

Please sign in to comment.