From d31a0c0b5dbdc35cca78beb72df3d75551142d6b Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 29 May 2019 23:41:43 +0200 Subject: [PATCH] Skip FileSnapshotTest#testSimulatePackfileReplacement on Windows NTFS does not support FileKey hence ignore this test on Windows. Change-Id: I7b53a591daa5e03eb5e401b5b26d612ab68ce10d Signed-off-by: Matthias Sohn --- .../eclipse/jgit/internal/storage/file/FileSnapshotTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileSnapshotTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileSnapshotTest.java index 68cc27371..6ef87d8b0 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileSnapshotTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileSnapshotTest.java @@ -54,7 +54,9 @@ import java.util.ArrayList; import java.util.List; import org.eclipse.jgit.util.FileUtils; +import org.eclipse.jgit.util.SystemReader; import org.junit.After; +import org.junit.Assume; import org.junit.Before; import org.junit.Test; @@ -138,6 +140,7 @@ public class FileSnapshotTest { */ @Test public void testSimulatePackfileReplacement() throws Exception { + Assume.assumeFalse(SystemReader.getInstance().isWindows()); File f1 = createFile("file"); // inode y File f2 = createFile("fool"); // Guarantees new inode x // wait on f2 since this method resets lastModified of the file