Author: ecki
Date: Sun Nov 16 03:43:21 2014
New Revision: 1639949

URL: http://svn.apache.org/r1639949
Log:
Make test harness cleanup temp dir

Modified:
    
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java

Modified: 
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java?rev=1639949&r1=1639948&r2=1639949&view=diff
==============================================================================
--- 
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
 (original)
+++ 
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
 Sun Nov 16 03:43:21 2014
@@ -30,6 +30,8 @@ import junit.framework.Test;
 import junit.framework.TestResult;
 import junit.framework.TestSuite;
 
+import org.apache.commons.io.FileUtils;
+
 import org.apache.commons.AbstractVfsTestCase;
 import org.apache.commons.vfs2.FileName;
 import org.apache.commons.vfs2.FileObject;
@@ -159,6 +161,7 @@ public abstract class AbstractTestSuite
 
         // Locate the temp directory, and clean it up
         tempDir = AbstractVfsTestCase.getTestDirectory("temp");
+        FileUtils.cleanDirectory(tempDir);
         checkTempDir("Temp dir not empty before test");
 
         // Create the file system manager


Reply via email to