You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2025/09/10 15:22:58 UTC

(jackrabbit-oak) branch OAK-11900 created (now 7e0543e548)

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

reschke pushed a change to branch OAK-11900
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 7e0543e548 OAK-11900: SplitPersistenceTest: disable three tests on Windows platform

This branch includes the following new commits:

     new 7e0543e548 OAK-11900: SplitPersistenceTest: disable three tests on Windows platform

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(jackrabbit-oak) 01/01: OAK-11900: SplitPersistenceTest: disable three tests on Windows platform

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch OAK-11900
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 7e0543e548da745177512b54647d98faaead818c
Author: Julian Reschke <re...@apache.org>
AuthorDate: Wed Sep 10 16:22:33 2025 +0100

    OAK-11900: SplitPersistenceTest: disable three tests on Windows platform
---
 .../segment/spi/persistence/split/SplitPersistenceTest.java    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/spi/persistence/split/SplitPersistenceTest.java b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/spi/persistence/split/SplitPersistenceTest.java
index a64321bf88..005e3ae5fc 100644
--- a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/spi/persistence/split/SplitPersistenceTest.java
+++ b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/spi/persistence/split/SplitPersistenceTest.java
@@ -28,6 +28,7 @@ import org.apache.jackrabbit.oak.segment.spi.persistence.testutils.NodeStoreTest
 import org.hamcrest.CoreMatchers;
 import org.hamcrest.MatcherAssert;
 import org.jetbrains.annotations.NotNull;
+import org.junit.Assume;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -67,6 +68,12 @@ public class SplitPersistenceTest {
 
     private @NotNull List<String> roArchives;
 
+    private static void assumeNotOnWindows() {
+        Assume.assumeFalse("Test skipped on Windows, see OAK-11900",
+            System.getProperty("os.name", "").startsWith("Windows "));
+    }
+
+
     @Before
     public void setUp() throws IOException, InvalidFileStoreVersionException, CommitFailedException {
         final NodeStoreTestHarness roHarness = harnesses.createHarnessWithFolder(TarPersistence::new);
@@ -150,12 +157,14 @@ public class SplitPersistenceTest {
 
     @Test
     public void archiveManager_delete() throws IOException {
+        assumeNotOnWindows();
         assertFalse(splitArchiveManager.delete("data00000a.tar"));
         assertTrue(splitArchiveManager.delete("data00003a.tar"));
     }
 
     @Test
     public void archiveManager_renameTo() throws IOException {
+        assumeNotOnWindows();
         assertFalse(splitArchiveManager.renameTo("data00000a.tar", "data00000a.tar.bak"));
         assertTrue(splitArchiveManager.renameTo("data00003a.tar", "data00003a.tar.bak"));
     }
@@ -171,6 +180,7 @@ public class SplitPersistenceTest {
 
     @Test
     public void archiveManager_recover_and_backup() throws IOException {
+        assumeNotOnWindows();
         LinkedHashMap<UUID, byte[]> entries = new LinkedHashMap<>();
         splitArchiveManager.recoverEntries("data00000a.tar", entries);
         assertEquals(2, entries.size());