mirror of https://github.com/apache/lucene.git
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:
parent
bce2a5d321
commit
5569c9f610
|
@ -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 {
|
||||||
|
|
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue