directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r676003 - /directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
Date Fri, 11 Jul 2008 15:56:16 GMT
Author: elecharny
Date: Fri Jul 11 08:56:15 2008
New Revision: 676003

URL: http://svn.apache.org/viewvc?rev=676003&view=rev
Log:
Added a call to delete the tmp file created during the test run

Modified:
    directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java

Modified: directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java?rev=676003&r1=676002&r2=676003&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
(original)
+++ directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
Fri Jul 11 08:56:15 2008
@@ -76,8 +76,9 @@
             dbFileDir.delete();
         }
 
-        dbFileDir = new File( File.createTempFile(
-            JdbmIndexTest.class.getSimpleName(), "db" ).getParentFile(),
+        File tmpIndexFile = File.createTempFile( JdbmIndexTest.class.getSimpleName(), "db"
);
+        tmpIndexFile.deleteOnExit();
+        dbFileDir = new File( tmpIndexFile.getParentFile(),
             JdbmIndexTest.class.getSimpleName() );
 
         dbFileDir.mkdirs();



Mime
View raw message