lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject [3/3] lucene-solr:master: LUCENE-8320: Disable test on windows
Date Fri, 18 May 2018 17:38:28 GMT
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/master
Commit: 82ad857f1af67c99fd8b979bf5a4c99b32e91f3c
Parents: 27c6275
Author: Simon Willnauer <simonw@apache.org>
Authored: Fri May 18 19:24:04 2018 +0200
Committer: Simon Willnauer <simonw@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));


Mime
View raw message