From 46489120892dcda0577dc564e5465ceb253256a1 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Wed, 14 Mar 2007 10:23:44 +0000 Subject: [PATCH] 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 --- .../org/apache/lucene/index/TestBackwardsCompatibility.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java b/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java index f8c01680672..997be3d27e0 100644 --- a/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java +++ b/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java @@ -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));