Skip to content

Commit 3828911

Browse files
authored
chore: skip flaky test on macos (dotnet#2915)
1 parent b60371d commit 3828911

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ public byte[] SixtyFourBytesArray()
242242
[Trait(Constants.Category, Constants.BackwardCompatibilityCategory)]
243243
public void AllocationQuantumIsNotAnIssueForNetCore21Plus(IToolchain toolchain)
244244
{
245+
// TODO: Skip test on macos. Temporary workaround for https://github.com/dotnet/BenchmarkDotNet/issues/2779
246+
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX))
247+
return;
248+
245249
long objectAllocationOverhead = IntPtr.Size * 2; // pointer to method table + object header word
246250
long arraySizeOverhead = IntPtr.Size; // array length
247251
int warmupCount = OsDetector.IsMacOS()

0 commit comments

Comments
 (0)