From bfcc9ba1ee7553e542384dd01d99728fc7b3e276 Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Wed, 11 Oct 2023 22:39:59 -0500 Subject: [PATCH] Disable test for unix. --- .../IkvmReferenceExportItemPrepareTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/IKVM.MSBuild.Tasks.Tests/IkvmReferenceExportItemPrepareTests.cs b/src/IKVM.MSBuild.Tasks.Tests/IkvmReferenceExportItemPrepareTests.cs index fe8f176b91..2afd4a152a 100644 --- a/src/IKVM.MSBuild.Tasks.Tests/IkvmReferenceExportItemPrepareTests.cs +++ b/src/IKVM.MSBuild.Tasks.Tests/IkvmReferenceExportItemPrepareTests.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.IO; +using System.Runtime.InteropServices; using FluentAssertions; @@ -23,6 +24,10 @@ public class IkvmReferenceExportItemPrepareTests [DataRow("net6.0", ".NETCore", "6.0")] public void CanPrepare(string tfm, string targetFrameworkIdentifier, string targetFrameworkVersion) { + // no reference assemblies for NetFX on Unix + if (tfm == "net472" && RuntimeInformation.IsOSPlatform(OSPlatform.Windows) == false) + return; + var engine = new Mock(); var errors = new List(); engine.Setup(x => x.LogErrorEvent(It.IsAny())).Callback((BuildErrorEventArgs e) => errors.Add(e));