You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2018/10/05 11:56:41 UTC

jena git commit: JENA-1611: Skip tests on Windows for TDB and TDB2.

Repository: jena
Updated Branches:
  refs/heads/master fef0fae97 -> ecb01ecd8


JENA-1611: Skip tests on Windows for TDB and TDB2.

This is caused by the lack of immediate delete of database
mmap files on Microsoft Windows.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/ecb01ecd
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/ecb01ecd
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/ecb01ecd

Branch: refs/heads/master
Commit: ecb01ecd8b07f99966d6622d3aa33dc13ae19283
Parents: fef0fae
Author: Andy Seaborne <an...@apache.org>
Authored: Fri Oct 5 12:55:33 2018 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Fri Oct 5 12:56:34 2018 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/jena/fuseki/TestAdminAPI.java   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/ecb01ecd/jena-fuseki2/jena-fuseki-webapp/src/test/java/org/apache/jena/fuseki/TestAdminAPI.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/jena-fuseki-webapp/src/test/java/org/apache/jena/fuseki/TestAdminAPI.java b/jena-fuseki2/jena-fuseki-webapp/src/test/java/org/apache/jena/fuseki/TestAdminAPI.java
index b578b52..7128fae 100644
--- a/jena-fuseki2/jena-fuseki-webapp/src/test/java/org/apache/jena/fuseki/TestAdminAPI.java
+++ b/jena-fuseki2/jena-fuseki-webapp/src/test/java/org/apache/jena/fuseki/TestAdminAPI.java
@@ -50,17 +50,23 @@ public class TestAdminAPI extends AbstractFusekiTest {
     }
     
     @Test public void add_delete_api_2() throws Exception {
+        // Deleted mmap files on Windows does not go away until the JVM exits. 
+        if ( org.apache.jena.tdb.sys.SystemTDB.isWindows )
+            return;
         testAddDelete("db_tdb", "tdb", true);
     }
 
     @Test public void add_delete_api_3() throws Exception {
+        // Deleted mmap files on Windows does not go away until the JVM exits. 
+        if ( org.apache.jena.tdb2.sys.SystemTDB.isWindows )
+            return;
         testAddDelete("db_tdb2", "tdb2", true);
     }
 
     private static void testAddDelete(String dbName, String dbType, boolean hasFiles) {
         String datasetURL = ServerCtl.urlRoot()+dbName;
         String admin = ServerCtl.urlRoot()+"$/";
-        HttpEntity e = createFormEntity(dbName, "tdb");
+        HttpEntity e = createFormEntity(dbName, dbType);
         
         assertFalse(exists(datasetURL));