Skip to content

Commit

Permalink
Fix MemoryDiagnoserSupportsNativeAOT
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed May 31, 2023
1 parent c3a0f8d commit adf72c1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs
Expand Up @@ -290,6 +290,19 @@ private void AssertAllocations(IToolchain toolchain, Type benchmarkType, Diction
var benchmarks = BenchmarkConverter.TypeToBenchmarks(benchmarkType, config);

var summary = BenchmarkRunner.Run(benchmarks);
try
{
summary.CheckPlatformLinkerIssues();
}
catch (MisconfiguredEnvironmentException e)
{
if (ContinuousIntegration.IsLocalRun())
{
output.WriteLine(e.SkipMessage);
return;
}
throw;
}

foreach (var benchmarkAllocationsValidator in benchmarksAllocationsValidators)
{
Expand Down

0 comments on commit adf72c1

Please sign in to comment.