Skip to content

Commit 7134a1f

Browse files
committed
Skip WasmIsSupported test on Linux Arm.
1 parent 1b3a1a7 commit 7134a1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/BenchmarkDotNet.IntegrationTests/WasmTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.IO;
33
using BenchmarkDotNet.Attributes;
44
using BenchmarkDotNet.Configs;
5+
using BenchmarkDotNet.Detectors;
56
using BenchmarkDotNet.Environments;
67
using BenchmarkDotNet.Jobs;
78
using BenchmarkDotNet.Portability;
@@ -26,6 +27,12 @@ public class WasmTests(ITestOutputHelper output) : BenchmarkTestExecutor(output)
2627
[FactEnvSpecific("WASM is only supported on Unix", EnvRequirement.NonWindows)]
2728
public void WasmIsSupported()
2829
{
30+
// Test fails on Linux non-x64.
31+
if (OsDetector.IsLinux() && RuntimeInformation.GetCurrentPlatform() != Platform.X64)
32+
{
33+
return;
34+
}
35+
2936
var dotnetVersion = "net8.0";
3037
var logger = new OutputLogger(Output);
3138
var netCoreAppSettings = new NetCoreAppSettings(dotnetVersion, null, "Wasm");

0 commit comments

Comments
 (0)