jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1178589 - /incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransRestart.java
Date Mon, 03 Oct 2011 21:31:50 GMT
Author: andy
Date: Mon Oct  3 21:31:50 2011
New Revision: 1178589

URL: http://svn.apache.org/viewvc?rev=1178589&view=rev
Log:
"Fix" for windows

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransRestart.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransRestart.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransRestart.java?rev=1178589&r1=1178588&r2=1178589&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransRestart.java
(original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransRestart.java
Mon Oct  3 21:31:50 2011
@@ -45,6 +45,7 @@ import com.hp.hpl.jena.tdb.sys.TDBMaker 
 /** Test of re-attaching to a pre-existing database */  
 public class TestTransRestart extends BaseTest {
     static { 
+        // Only if run directly, not in test suite.
         if ( true )
             SystemTDB.setFileMode(FileMode.direct) ; 
     }
@@ -95,7 +96,9 @@ public class TestTransRestart extends Ba
             FileOps.clearDirectory(path) ;
             FileOps.delete(path) ;
         }
-        assertFalse ( dir.exists() ) ;
+        if ( ! SystemTDB.isWindows )
+            // Windows, any mode, does not remove directories, at least not instantly. 
+            assertFalse ( dir.exists() ) ;
     }
 
     



Mime
View raw message