lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r518090 - /lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
Date Wed, 14 Mar 2007 10:23:57 GMT
Author: mikemccand
Date: Wed Mar 14 03:23:44 2007
New Revision: 518090

URL: http://svn.apache.org/viewvc?view=rev&rev=518090
Log:
call rmDir() up front to prevent confusing false-positive failures from backwards compatibility
unit test

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java?view=diff&rev=518090&r1=518089&r2=518090
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java Wed
Mar 14 03:23:44 2007
@@ -257,6 +257,8 @@
 
   public void createIndex(String dirName, boolean doCFS) throws IOException {
 
+    rmDir(dirName);
+
     dirName = fullDir(dirName);
 
     Directory dir = FSDirectory.getDirectory(dirName);
@@ -287,6 +289,7 @@
     for(int pass=0;pass<2;pass++) {
 
       String outputDir = "lucene.backwardscompat0.index";
+      rmDir(outputDir);
 
       try {
         Directory dir = FSDirectory.getDirectory(fullDir(outputDir));



Mime
View raw message