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:03 UTC
[26/50] [abbrv] lucene-solr:jira/solr-11779: 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/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/jira/solr-11779
Commit: 85adac1c72c729e9f80437e7c152368cddc372cc
Parents: 70cfe46
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: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:///"));