[hg] main-silver: Skipping part of DatabaseConnectionTest that c...

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: Skipping part of DatabaseConnectionTest that c...
  • Date: Tue, 04 Jun 2013 13:34:10 -0700

changeset 8e5d1bc6e584 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/8e5d1bc6e584
description:
        Skipping part of DatabaseConnectionTest that causes OOME on Windows

diffstat:

 db/test/unit/src/org/netbeans/api/db/explorer/DatabaseConnectionTest.java |  
6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (27 lines):

diff --git 
a/db/test/unit/src/org/netbeans/api/db/explorer/DatabaseConnectionTest.java 
b/db/test/unit/src/org/netbeans/api/db/explorer/DatabaseConnectionTest.java
--- 
a/db/test/unit/src/org/netbeans/api/db/explorer/DatabaseConnectionTest.java
+++ 
b/db/test/unit/src/org/netbeans/api/db/explorer/DatabaseConnectionTest.java
@@ -48,6 +48,7 @@
 import java.util.Properties;
 import org.netbeans.modules.db.test.Util;
 import org.netbeans.modules.db.test.DBTestBase;
+import org.openide.util.Utilities;
 
 /**
  *
@@ -190,10 +191,15 @@
         assertTrue(connectionIsValid(dbconn.getJDBCConnection(true)));
         assertNotNull(dbconn.getJDBCConnection(false));
 
+        if (!Utilities.isWindows()) { // Causes OOME on Win - TODO 
investigate
         if (isDerby()) {
             shutdownDerby();
             assertNull(dbconn.getJDBCConnection(true));
         }
+        } else {
+            System.out.println("Shutdown derby:"
+                    + " Skipping part of test that fails on Windows");
+        }
     }
 
     /**

[hg] main-silver: Skipping part of DatabaseConnectionTest that c...

Jaroslav Havlin 06/04/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 136 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150626.29986a4). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close