LUCENE-5574: disable this test on Windows

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1584868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-04-04 19:10:34 +00:00
parent f8c30e27ae
commit 07d3f54f9b
1 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,7 @@ import org.apache.lucene.store.SimpleFSLockFactory;
import org.apache.lucene.store.SingleInstanceLockFactory;
import org.apache.lucene.util.Bits;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.Constants;
import org.apache.lucene.util.IOUtils;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.SetOnce;
@ -2374,6 +2375,11 @@ public class TestIndexWriter extends LuceneTestCase {
// LUCENE-5574
public void testClosingNRTReaderDoesNotCorruptYourIndex() throws IOException {
// Windows disallows deleting & overwriting files still
// open for reading:
assumeFalse("this test can't run on Windows", Constants.WINDOWS);
MockDirectoryWrapper dir = newMockDirectory();
// Allow deletion of still open files: