You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2007/07/08 19:40:03 UTC

svn commit: r554397 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AutoloadTest.java

Author: djd
Date: Sun Jul  8 10:40:02 2007
New Revision: 554397

URL: http://svn.apache.org/viewvc?view=rev&rev=554397
Log:
Fix test failure in AutoloadTest on non-JDK 6 virtual machines.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AutoloadTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AutoloadTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AutoloadTest.java?view=diff&rev=554397&r1=554396&r2=554397
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AutoloadTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AutoloadTest.java Sun Jul  8 10:40:02 2007
@@ -120,7 +120,7 @@
         // not loaded implicitly by some other means.
         TestSuite suite = new TestSuite("AutoloadTest: no autoloading expected");
         
-        suite.addTest(new AutoloadTest("testEmbeddedNotStarted"));
+        suite.addTest(SecurityManagerSetup.noSecurityManager(new AutoloadTest("testEmbeddedNotStarted")));
         suite.addTest(new AutoloadTest("noloadTestNodriverLoaded"));
         suite.addTest(TestConfiguration.clientServerDecorator(
                 new AutoloadTest("noloadTestNodriverLoaded")));
@@ -318,7 +318,11 @@
     
     /**
      * Return true if a ThreadGroup exists that has a name
-     * starting with derby.
+     * starting with 'derby.'. This needs to run without a security
+     * manager as it requires permissions to see all active
+     * thread groups. Since this not testing Derby functionality
+     * there's harm to not having a security manager, since
+     * no code is executed against Derby.
      */
     private boolean hasDerbyThreadGroup() {
         ThreadGroup tg = Thread.currentThread().getThreadGroup();