You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/07/26 16:18:32 UTC

svn commit: r1366012 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java

Author: rmuir
Date: Thu Jul 26 14:18:31 2012
New Revision: 1366012

URL: http://svn.apache.org/viewvc?rev=1366012&view=rev
Log:
cut test over to newFSDirectory to hopefully stop OOMs

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java

Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java?rev=1366012&r1=1366011&r2=1366012&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java Thu Jul 26 14:18:31 2012
@@ -869,7 +869,7 @@ public class TestPostingsFormat extends 
   }
 
   public void test() throws Exception {
-    Directory dir = newDirectory();
+    Directory dir = newFSDirectory(_TestUtil.getTempDir("testPostingsFormat"));
 
     boolean indexPayloads = random().nextBoolean();
     // TODO test thread safety of buildIndex too