lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r476972 - in /lucene/java/trunk/src/test/org/apache/lucene/index: TestBackwardsCompatibility.java TestIndexReader.java
Date Sun, 19 Nov 2006 23:14:32 GMT
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{



Mime
View raw message