You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2011/05/07 11:54:43 UTC

svn commit: r1100496 - in /lucene/dev/branches/lucene_solr_3_1: ./ lucene/ lucene/backwards/ lucene/contrib/lucli/build.xml lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java solr/ solr/build.xml

Author: uschindler
Date: Sat May  7 09:54:42 2011
New Revision: 1100496

URL: http://svn.apache.org/viewvc?rev=1100496&view=rev
Log:
It was no longer possible to create the backwards test indexes, because they were automatically deleted directly after test and also their name was unreadable.
The method to create backwards indexes is never called for normal test runs, only when you explicitly enable the commented-out code

Modified:
    lucene/dev/branches/lucene_solr_3_1/   (props changed)
    lucene/dev/branches/lucene_solr_3_1/lucene/   (props changed)
    lucene/dev/branches/lucene_solr_3_1/lucene/backwards/   (props changed)
    lucene/dev/branches/lucene_solr_3_1/lucene/contrib/lucli/build.xml   (props changed)
    lucene/dev/branches/lucene_solr_3_1/lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
    lucene/dev/branches/lucene_solr_3_1/solr/   (props changed)
    lucene/dev/branches/lucene_solr_3_1/solr/build.xml   (props changed)

Modified: lucene/dev/branches/lucene_solr_3_1/lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_3_1/lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java?rev=1100496&r1=1100495&r2=1100496&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_3_1/lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java (original)
+++ lucene/dev/branches/lucene_solr_3_1/lucene/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java Sat May  7 09:54:42 2011
@@ -474,8 +474,8 @@ public class TestBackwardsCompatibility 
   }
 
   public File createIndex(Random random, String dirName, boolean doCFS) throws IOException {
-
-    File indexDir = _TestUtil.getTempDir(dirName);
+    // we use a real directory name that is not cleaned up, because this method is only used to create backwards indexes:
+    File indexDir = new File(LuceneTestCase.TEMP_DIR, dirName);
     _TestUtil.rmDir(indexDir);
     Directory dir = newFSDirectory(indexDir);
     IndexWriterConfig conf = new IndexWriterConfig(TEST_VERSION_CURRENT, new WhitespaceAnalyzer(TEST_VERSION_CURRENT)).setMaxBufferedDocs(10);