You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2018/05/22 19:59:04 UTC

[27/50] [abbrv] lucene-solr:jira/solr-11779: LUCENE-8320: Disable test on windows

LUCENE-8320: Disable test on windows

irony: currently we don't emulate windows well enough to work on windows!


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/82ad857f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/82ad857f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/82ad857f

Branch: refs/heads/jira/solr-11779
Commit: 82ad857f1af67c99fd8b979bf5a4c99b32e91f3c
Parents: 27c6275
Author: Simon Willnauer <si...@apache.org>
Authored: Fri May 18 19:24:04 2018 +0200
Committer: Simon Willnauer <si...@apache.org>
Committed: Fri May 18 19:38:11 2018 +0200

----------------------------------------------------------------------
 .../org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/82ad857f/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java
----------------------------------------------------------------------
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 0cce132..a6392c9 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));