db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r522982 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java
Date Tue, 27 Mar 2007 16:11:47 GMT
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;



Mime
View raw message