You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2018/05/18 17:38:57 UTC

[3/3] lucene-solr:branch_7x: Disable WindowsFS dependent tests in TestSimpleFSDirectory on Windows

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/59f2b7ae
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/59f2b7ae
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/59f2b7ae

Branch: refs/heads/branch_7x
Commit: 59f2b7aec2fb1beed63772eda197c2247091c975
Parents: af17037
Author: Simon Willnauer <si...@apache.org>
Authored: Fri May 18 19:36:16 2018 +0200
Committer: Simon Willnauer <si...@apache.org>
Committed: Fri May 18 19:38:46 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/59f2b7ae/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:///"));