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 rh...@apache.org on 2007/03/27 18:11:47 UTC

svn commit: r522982 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java

Author: rhillegas
Date: Tue Mar 27 09:11:46 2007
New Revision: 522982

URL: http://svn.apache.org/viewvc?view=rev&rev=522982
Log:
DERBY-2466: Only run the SecurityPolicyReloadingTest if we are running against jar files.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java?view=diff&rev=522982&r1=522981&r2=522982
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java Tue Mar 27 09:11:46 2007
@@ -115,6 +115,12 @@
     {
         TestSuite       suite = new TestSuite("SecurityPolicyReloadingTest");
 
+        // The reloaded policy requires restricted property-reading permissions,
+        // which is easy to do if you can subdivide the protection domains by
+        // jar file but is not easy to do with all of the testing and server
+        // classes jumbled together in the same class tree.
+        if ( !TestConfiguration.loadingFromJars() ) { return suite; }
+
         suite.addTest( decorateTest() );
 
         return suite;