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 2019/06/12 15:56:42 UTC
[lucene-solr] branch master updated: LUCENE-8835: Irony - our tests
don't emulate windows well enough
This is an automated email from the ASF dual-hosted git repository.
simonw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 608d913 LUCENE-8835: Irony - our tests don't emulate windows well enough
608d913 is described below
commit 608d9134ad519d7067858de489862f2bd9ce0969
Author: Simon Willnauer <si...@apache.org>
AuthorDate: Wed Jun 12 17:56:06 2019 +0200
LUCENE-8835: Irony - our tests don't emulate windows well enough
---
.../core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java b/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java
index 031d5eb..256ee1b 100644
--- a/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java
+++ b/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java
@@ -37,6 +37,7 @@ import org.apache.lucene.index.IndexWriterConfig;
import org.apache.lucene.index.TestIndexWriterReader;
import org.apache.lucene.mockfile.FilterPath;
import org.apache.lucene.mockfile.WindowsFS;
+import org.apache.lucene.util.Constants;
import org.apache.lucene.util.TestUtil;
public class TestFileSwitchDirectory extends BaseDirectoryTestCase {
@@ -140,6 +141,7 @@ public class TestFileSwitchDirectory extends BaseDirectoryTestCase {
public void testDeleteAndList() throws IOException {
// relies on windows semantics
Path path = createTempDir();
+ assumeFalse("Irony we seem to not emulate windows well enough", Constants.WINDOWS);
FileSystem fs = new WindowsFS(path.getFileSystem()).getFileSystem(URI.create("file:///"));
Path indexPath = new FilterPath(path, fs);
try (final FileSwitchDirectory dir = new FileSwitchDirectory(Collections.singleton("tim"),