Skip to content

Commit 5f1dcd8

Browse files
authored
chore: skip null runtime validation for inprocess toolchain (#2780)
1 parent 27d864a commit 5f1dcd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BenchmarkDotNet/Validators/RuntimeValidator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using System.Linq;
33
using BenchmarkDotNet.Characteristics;
4+
using BenchmarkDotNet.Toolchains;
45

56
namespace BenchmarkDotNet.Validators;
67

@@ -28,7 +29,7 @@ public IEnumerable<ValidationError> Validate(ValidationParameters input)
2829
}
2930

3031
var errors = new List<ValidationError>();
31-
foreach (var benchmark in nullRuntimeBenchmarks)
32+
foreach (var benchmark in nullRuntimeBenchmarks.Where(x=> !x.GetToolchain().IsInProcess))
3233
{
3334
var job = benchmark.Job;
3435
var jobText = job.HasValue(CharacteristicObject.IdCharacteristic)

0 commit comments

Comments
 (0)