Apache Lucene open-source search software
minor change: clean up some tmp test index directories (only on successful completion of test method)
Chris M. Hostetter5569c9f610d2
diff --git a/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java b/src/test/org/apache/lucene/index/TestBackwardsCompatibility.javaindex 8e95f99aedc..b8179f47124 100644--- a/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java+++ b/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java@@ -74,11 +74,15 @@ public class TestBackwardsCompatibility extends TestCase}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 {diff --git a/src/test/org/apache/lucene/index/TestIndexReader.java b/src/test/org/apache/lucene/index/TestIndexReader.javaindex efe6ce0d930..4be39557f2b 100644--- a/src/test/org/apache/lucene/index/TestIndexReader.java+++ b/src/test/org/apache/lucene/index/TestIndexReader.java@@ -303,6 +303,7 @@ public class TestIndexReader extends TestCase} catch (FileNotFoundException e) {// GOOD}+ rmDir(fileDirName);}public void testDeleteReaderWriterConflictOptimized() throws IOException{