lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject [1/3] lucene-solr:master: Disable WindowsFS dependent tests in TestSimpleFSDirectory on Windows
Date Fri, 18 May 2018 17:38:26 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 27c6275c4 -> 85adac1c7


Disable WindowsFS dependent tests in TestSimpleFSDirectory 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/85adac1c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/85adac1c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/85adac1c

Branch: refs/heads/master
Commit: 85adac1c72c729e9f80437e7c152368cddc372cc
Parents: 70cfe46
Author: Simon Willnauer <simonw@apache.org>
Authored: Fri May 18 19:36:16 2018 +0200
Committer: Simon Willnauer <simonw@apache.org>
Committed: Fri May 18 19:38:11 2018 +0200

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/store/TestSimpleFSDirectory.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/85adac1c/lucene/core/src/test/org/apache/lucene/store/TestSimpleFSDirectory.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/store/TestSimpleFSDirectory.java b/lucene/core/src/test/org/apache/lucene/store/TestSimpleFSDirectory.java
index e550bcc..15a26a0 100644
--- a/lucene/core/src/test/org/apache/lucene/store/TestSimpleFSDirectory.java
+++ b/lucene/core/src/test/org/apache/lucene/store/TestSimpleFSDirectory.java
@@ -24,6 +24,7 @@ import java.nio.file.Path;
 
 import org.apache.lucene.mockfile.FilterPath;
 import org.apache.lucene.mockfile.WindowsFS;
+import org.apache.lucene.util.Constants;
 import org.apache.lucene.util.IOUtils;
 
 /**
@@ -38,6 +39,8 @@ public class TestSimpleFSDirectory extends BaseDirectoryTestCase {
 
   public void testRenameWithPendingDeletes() throws IOException {
     Path path = createTempDir();
+    // irony: currently we don't emulate windows well enough to work on windows!
+    assumeFalse("windows is not supported", Constants.WINDOWS);
     // Use WindowsFS to prevent open files from being deleted:
     FileSystem fs = new WindowsFS(path.getFileSystem()).getFileSystem(URI.create("file:///"));
     Path root = new FilterPath(path, fs);
@@ -60,6 +63,8 @@ public class TestSimpleFSDirectory extends BaseDirectoryTestCase {
   }
 
   public void testCreateOutputWithPendingDeletes() throws IOException {
+    // irony: currently we don't emulate windows well enough to work on windows!
+    assumeFalse("windows is not supported", Constants.WINDOWS);
     Path path = createTempDir();
     // Use WindowsFS to prevent open files from being deleted:
     FileSystem fs = new WindowsFS(path.getFileSystem()).getFileSystem(URI.create("file:///"));


Mime
View raw message