minor change: clean up some tmp test index directories (only on successful completion of test method)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@476972 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2006-11-19 23:14:31 +00:00
parent bce2a5d321
commit 5569c9f610
2 changed files with 7 additions and 2 deletions

View File

@ -74,11 +74,15 @@ public class TestBackwardsCompatibility extends TestCase
} }
public void testCreateCFS() throws IOException { public void testCreateCFS() throws IOException {
createIndex("testindex.cfs", true); String dirName = "testindex.cfs";
createIndex(dirName, true);
rmDir(dirName);
} }
public void testCreateNoCFS() throws IOException { public void testCreateNoCFS() throws IOException {
createIndex("testindex.nocfs", false); String dirName = "testindex.nocfs";
createIndex(dirName, true);
rmDir(dirName);
} }
public void testSearchOldIndexCFS() throws IOException { public void testSearchOldIndexCFS() throws IOException {

View File

@ -303,6 +303,7 @@ public class TestIndexReader extends TestCase
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
// GOOD // GOOD
} }
rmDir(fileDirName);
} }
public void testDeleteReaderWriterConflictOptimized() throws IOException{ public void testDeleteReaderWriterConflictOptimized() throws IOException{