From f4232a846d90564fff0e42d4df9cca7fbfbcc53b Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Thu, 15 Aug 2024 16:27:51 +0700 Subject: [PATCH] disable spelling tests when running dotnet 8 on linux --- .../SpellChecking/SpellingHelperTests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/SIL.LCModel.Core.Tests/SpellChecking/SpellingHelperTests.cs b/tests/SIL.LCModel.Core.Tests/SpellChecking/SpellingHelperTests.cs index a3cec6b9..296d7d49 100644 --- a/tests/SIL.LCModel.Core.Tests/SpellChecking/SpellingHelperTests.cs +++ b/tests/SIL.LCModel.Core.Tests/SpellChecking/SpellingHelperTests.cs @@ -5,6 +5,7 @@ using System; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using NUnit.Framework; using SIL.IO; @@ -22,6 +23,17 @@ public class SpellingHelperTests { // TODO-Linux: need slightly modified hunspell package installed! + [OneTimeSetUp] + public void FixtureSetUp() + { + #if NET8_0 + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + Assert.Ignore("NHunspell does not work on dotnet 8 on linux"); + } + #endif + } + /// /// Check how spelling status is set and cleared. ///