This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch Update_workflows
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git


The following commit(s) were added to refs/heads/Update_workflows by this push:
     new 97ff47af Modify 2 tests to skip if Windows.
97ff47af is described below

commit 97ff47afd071a6e0b585ff57b39b1623883f18de
Author: Lee Rhodes <[email protected]>
AuthorDate: Mon Jun 8 21:14:42 2026 -0700

    Modify 2 tests to skip if Windows.
---
 .../datasketches/memory/internal/AllocateDirectMapMemoryTest.java   | 6 ++++++
 .../memory/internal/AllocateDirectWritableMapMemoryTest.java        | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git 
a/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectMapMemoryTest.java
 
b/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectMapMemoryTest.java
index 4a67b946..5a9b1e3d 100644
--- 
a/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectMapMemoryTest.java
+++ 
b/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectMapMemoryTest.java
@@ -29,11 +29,13 @@ import java.nio.ByteOrder;
 import java.nio.charset.StandardCharsets;
 
 import org.apache.datasketches.memory.Memory;
+import org.testng.SkipException;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
 public class AllocateDirectMapMemoryTest {
   private static final String LS = System.getProperty("line.separator");
+  private static final boolean IS_WINDOWS = 
System.getProperty("os.name").toLowerCase().contains("windows");
   private File gettyFile;
   private long gettySize;
   
@@ -116,6 +118,10 @@ public class AllocateDirectMapMemoryTest {
 
   @Test
   public void testLoad() throws IOException  {
+    if (IS_WINDOWS) {
+      throw new SkipException("isLoaded() is unreliable on Windows VMM; 
skipping test.");
+    }
+    
     long memCapacity = gettySize;
     try (Memory mem = Memory.map(gettyFile, 0, memCapacity, 
ByteOrder.nativeOrder())) {
       mem.load();
diff --git 
a/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMapMemoryTest.java
 
b/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMapMemoryTest.java
index 59807b6d..b6b213f0 100644
--- 
a/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMapMemoryTest.java
+++ 
b/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMapMemoryTest.java
@@ -34,11 +34,13 @@ import java.nio.ByteOrder;
 import org.apache.datasketches.memory.Memory;
 import org.apache.datasketches.memory.ReadOnlyException;
 import org.apache.datasketches.memory.WritableMemory;
+import org.testng.SkipException;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
 public class AllocateDirectWritableMapMemoryTest {
   private static final String LS = System.getProperty("line.separator");
+  private static final boolean IS_WINDOWS = 
System.getProperty("os.name").toLowerCase().contains("windows");
   private File gettyFile;
   
   @BeforeClass
@@ -140,6 +142,10 @@ public class AllocateDirectWritableMapMemoryTest {
 
   @Test
   public void testForce() throws Exception {
+    if (IS_WINDOWS) {
+      throw new SkipException("isLoaded() is unreliable on Windows VMM; 
skipping test.");
+    }
+    
     String origStr = "Corectng spellng mistks";
     File origFile = createFile("force_original.txt", origStr); //23
     assertTrue(origFile.setWritable(true, false));


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to