You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by us...@apache.org on 2009/06/01 21:10:27 UTC

svn commit: r780788 - /lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestCompoundFile.java

Author: uschindler
Date: Mon Jun  1 19:10:27 2009
New Revision: 780788

URL: http://svn.apache.org/viewvc?rev=780788&view=rev
Log:
LUCENE-1658: This update is needed, as the new FSDir impl will return SimpleFSDir per default. Parts of this test are automatically disabled (wrong instance), but cleanup does not work, so cfs file cannot be deleted before next test on windows -> failure.
I do not create a new tag now, this fix is not so important, the next time someone creates a new backwards-tag is created is enough.

Modified:
    lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestCompoundFile.java

Modified: lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestCompoundFile.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestCompoundFile.java?rev=780788&r1=780787&r2=780788&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestCompoundFile.java (original)
+++ lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestCompoundFile.java Mon Jun  1 19:10:27 2009
@@ -415,6 +415,8 @@
           expected.seek(0);
           two.seek(0);
           //assertSameStreams("basic clone two/4", expected, two);
+        } else {
+          cr.close();
         }
 
         expected.close();