Browse Source

Ignore DocumentOperations tests on Linux Musl due to unsupported functionality

Marcin Ziąbek 7 months ago
parent
commit
72e647748f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Source/QuestPDF.UnitTests/DocumentCompressionTests.cs

+ 7 - 0
Source/QuestPDF.UnitTests/DocumentCompressionTests.cs

@@ -1,6 +1,7 @@
 using System;
 using System;
 using System.Diagnostics;
 using System.Diagnostics;
 using System.Linq;
 using System.Linq;
+using System.Runtime.InteropServices;
 using NUnit.Framework;
 using NUnit.Framework;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Helpers;
 using QuestPDF.Helpers;
@@ -10,6 +11,12 @@ namespace QuestPDF.UnitTests;
 
 
 public class DocumentCompressionTests
 public class DocumentCompressionTests
 {
 {
+    public DocumentCompressionTests()
+    {
+        if (RuntimeInformation.RuntimeIdentifier == "linux-musl-x64")
+            Assert.Ignore("The DocumentOperations functionality is not supported on Linux Musl, e.g. Alpine.");
+    }
+    
     [Test]
     [Test]
     public void Test()
     public void Test()
     {
     {