You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by ho...@apache.org on 2006/11/20 00:14:32 UTC

svn commit: r476972 - in /lucene/java/trunk/src/test/org/apache/lucene/index: TestBackwardsCompatibility.java TestIndexReader.java

Author: hossman
Date: Sun Nov 19 15:14:31 2006
New Revision: 476972

URL: http://svn.apache.org/viewvc?view=rev&rev=476972
Log:
minor change: clean up some tmp test index directories (only on successful completion of test method)

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
    lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReader.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java?view=diff&rev=476972&r1=476971&r2=476972
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java Sun Nov 19 15:14:31 2006
@@ -74,11 +74,15 @@
   }
 
   public void testCreateCFS() throws IOException {
-    createIndex("testindex.cfs", true);
+    String dirName = "testindex.cfs";
+    createIndex(dirName, true);
+    rmDir(dirName);
   }
 
   public void testCreateNoCFS() throws IOException {
-    createIndex("testindex.nocfs", false);
+    String dirName = "testindex.nocfs";
+    createIndex(dirName, true);
+    rmDir(dirName);
   }
 
   public void testSearchOldIndexCFS() throws IOException {

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReader.java?view=diff&rev=476972&r1=476971&r2=476972
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReader.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReader.java Sun Nov 19 15:14:31 2006
@@ -303,6 +303,7 @@
       } catch (FileNotFoundException e) {
         // GOOD
       }
+      rmDir(fileDirName);
     }
     
     public void testDeleteReaderWriterConflictOptimized() throws IOException{