call rmDir() up front to prevent confusing false-positive failures from backwards compatibility unit test

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2007-03-14 10:23:44 +00:00
parent d4e406ad22
commit 4648912089
1 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,8 @@ public class TestBackwardsCompatibility extends TestCase
public void createIndex(String dirName, boolean doCFS) throws IOException {
rmDir(dirName);
dirName = fullDir(dirName);
Directory dir = FSDirectory.getDirectory(dirName);
@ -287,6 +289,7 @@ public class TestBackwardsCompatibility extends TestCase
for(int pass=0;pass<2;pass++) {
String outputDir = "lucene.backwardscompat0.index";
rmDir(outputDir);
try {
Directory dir = FSDirectory.getDirectory(fullDir(outputDir));