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:
Robert Muir 2014-11-26 11:55:41 +00:00
parent efb848f9e3
commit 07b606bc88
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.lucene.util.Constants;
import org.apache.lucene.util.InfoStream;
import org.apache.lucene.util.LuceneTestCase;
@ -123,6 +124,7 @@ public class TestMockFilesystems extends LuceneTestCase {
}
public void testDeleteOpenFile() throws IOException {
assumeFalse("windows is not supported", Constants.WINDOWS);
Path dir = FilterPath.unwrap(createTempDir());
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
Path wrapped = new FilterPath(dir, fs);
@ -141,6 +143,7 @@ public class TestMockFilesystems extends LuceneTestCase {
}
public void testDeleteIfExistsOpenFile() throws IOException {
assumeFalse("windows is not supported", Constants.WINDOWS);
Path dir = FilterPath.unwrap(createTempDir());
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
Path wrapped = new FilterPath(dir, fs);
@ -159,6 +162,7 @@ public class TestMockFilesystems extends LuceneTestCase {
}
public void testRenameOpenFile() throws IOException {
assumeFalse("windows is not supported", Constants.WINDOWS);
Path dir = FilterPath.unwrap(createTempDir());
FileSystem fs = new WindowsFS(dir.getFileSystem()).getFileSystem(URI.create("file:///"));
Path wrapped = new FilterPath(dir, fs);