From 82ad857f1af67c99fd8b979bf5a4c99b32e91f3c Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 18 May 2018 19:24:04 +0200 Subject: [PATCH] LUCENE-8320: Disable test on windows irony: currently we don't emulate windows well enough to work on windows! --- .../apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java b/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java index 0cce1329585..a6392c90468 100644 --- a/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java +++ b/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java @@ -28,6 +28,7 @@ import java.util.Collections; import org.apache.lucene.codecs.CodecUtil; import org.apache.lucene.mockfile.FilterPath; import org.apache.lucene.mockfile.WindowsFS; +import org.apache.lucene.util.Constants; import org.apache.lucene.util.IOUtils; // See: https://issues.apache.org/jira/browse/SOLR-12028 Tests cannot remove files on Windows machines occasionally @@ -93,6 +94,8 @@ public class TestHardLinkCopyDirectoryWrapper extends BaseDirectoryTestCase { } public void testRenameWithHardLink() throws Exception { + // irony: currently we don't emulate windows well enough to work on windows! + assumeFalse("windows is not supported", Constants.WINDOWS); Path path = createTempDir(); FileSystem fs = new WindowsFS(path.getFileSystem()).getFileSystem(URI.create("file:///")); Directory dir1 = new SimpleFSDirectory(new FilterPath(path, fs));