db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1292595 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting: functionTests/tests/largedata/_Suite.java junit/BaseTestCase.java
Date Thu, 23 Feb 2012 00:25:07 GMT
Author: mikem
Date: Thu Feb 23 00:25:06 2012
New Revision: 1292595

URL: http://svn.apache.org/viewvc?rev=1292595&view=rev
Log:
DERBY-5624 System can run out of stack space while processing DropOnCommit requests.

Only run the testDERBY_5624 in largedata on windows until linux issue resolved.

Currently on linux with 1024 file descriptors per user this test fails.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/_Suite.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/_Suite.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/_Suite.java?rev=1292595&r1=1292594&r2=1292595&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/_Suite.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/_Suite.java
Thu Feb 23 00:25:06 2012
@@ -32,20 +32,24 @@ public class _Suite extends BaseJDBCTest
     }
 
     /**
-     * Suite runs first the lite suite for both embedded and client with LobLimitsLiteTest
+     * Suite runs first the lite suite for both embedded and client with 
+     * LobLimitsLiteTest.
      * Then runs the full embeddded suite with LobLimitsTest 
      * Then runs the full client suite with LobLimitsClientTest.
      * The full suite may take a very long time.
      */
     public static Test suite() {
         TestSuite suite = new TestSuite("largedata suite");
+
+        // DERBY-5624, currently this runs out of file descriptors on unix
+        // systems with 1024 limit per user.  Setting to run only on windows
+        // until solution for unix is found.
+        if (isWindowsPlatform())
+            suite.addTest(Derby5624Test.suite());
+
         suite.addTest(LobLimitsLiteTest.suite());
-        suite.addTest(Derby5624Test.suite());
         suite.addTest(LobLimitsTest.suite());
         suite.addTest(LobLimitsClientTest.suite());
         return suite;
-        
     }
-    
-    
 }

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1292595&r1=1292594&r2=1292595&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Thu Feb
23 00:25:06 2012
@@ -648,6 +648,39 @@ public abstract class BaseTestCase
 
         return getSystemProperty("os.name").equals(osName);
     }
+
+    /**
+     * Determine if platform is a Windows variant.
+     * <p>
+     * Return true if platform is a windows platform.  Just looks for
+     * os.name starting with "Windows".  The os.name property
+     * can have at least the following values (there are probably more):
+     *
+     * AIX
+     * Digital Unix
+     * FreeBSD
+     * HP UX
+     * Irix
+     * Linux
+     * Mac OS
+     * Mac OS X
+     * MPE/iX
+     * Netware 4.11
+     * OS/2
+     * Solaris
+     * Windows 2000
+     * Windows 95
+     * Windows 98
+     * Windows NT
+     * Windows Vista
+     * Windows XP
+     * <p>
+     *
+     * @return true if running on a Windows platform.
+     **/
+    public static final boolean isWindowsPlatform() {
+        return getSystemProperty("os.name").startsWith("Windows");
+    }
     
     /**
      * Check if this is java 5



Mime
View raw message