mirror of https://github.com/apache/lucene.git
disable windows here
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1641798 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
efb848f9e3
commit
07b606bc88
|
@ -30,6 +30,7 @@ import java.nio.file.Path;
|
||||||
import java.nio.file.StandardCopyOption;
|
import java.nio.file.StandardCopyOption;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
|
import org.apache.lucene.util.Constants;
|
||||||
import org.apache.lucene.util.InfoStream;
|
import org.apache.lucene.util.InfoStream;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
|
|
||||||
|
@ -123,6 +124,7 @@ public class TestMockFilesystems extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testDeleteOpenFile() throws IOException {
|
public void testDeleteOpenFile() throws IOException {
|
||||||
|
assumeFalse("windows is not supported", Constants.WINDOWS);
|
||||||
Path dir = FilterPath.unwrap(createTempDir());
|
Path dir = FilterPath.unwrap(createTempDir());
|
||||||
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
|
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
|
||||||
Path wrapped = new FilterPath(dir, fs);
|
Path wrapped = new FilterPath(dir, fs);
|
||||||
|
@ -141,6 +143,7 @@ public class TestMockFilesystems extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testDeleteIfExistsOpenFile() throws IOException {
|
public void testDeleteIfExistsOpenFile() throws IOException {
|
||||||
|
assumeFalse("windows is not supported", Constants.WINDOWS);
|
||||||
Path dir = FilterPath.unwrap(createTempDir());
|
Path dir = FilterPath.unwrap(createTempDir());
|
||||||
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
|
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
|
||||||
Path wrapped = new FilterPath(dir, fs);
|
Path wrapped = new FilterPath(dir, fs);
|
||||||
|
@ -159,6 +162,7 @@ public class TestMockFilesystems extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testRenameOpenFile() throws IOException {
|
public void testRenameOpenFile() throws IOException {
|
||||||
|
assumeFalse("windows is not supported", Constants.WINDOWS);
|
||||||
Path dir = FilterPath.unwrap(createTempDir());
|
Path dir = FilterPath.unwrap(createTempDir());
|
||||||
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
|
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
|
||||||
Path wrapped = new FilterPath(dir, fs);
|
Path wrapped = new FilterPath(dir, fs);
|
||||||
|
|
Loading…
Reference in New Issue