db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject svn commit: r689460 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
Date Wed, 27 Aug 2008 12:37:14 GMT
Author: johnemb
Date: Wed Aug 27 05:37:13 2008
New Revision: 689460

URL: http://svn.apache.org/viewvc?rev=689460&view=rev
Log:
DERBY-3561: testStartStopManagementFromApplication fails with "expected:<2> but was:<5>"
 - applying same change to ServerPropertiesTest.policy's section for classes as
   revision 644248 did to its section for derby.jar.
 - that is, added permission which allows ServerPropertiesTest's JVM to unregister 
   MBeans that are automatically registered upon Derby boot by that test or previous 
   tests.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy?rev=689460&r1=689459&r2=689460&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
Wed Aug 27 05:37:13 2008
@@ -215,6 +215,11 @@
   // streams. Currently the nist suite runs with useprocess=false.
   permission java.lang.RuntimePermission "setSecurityManager";
   permission java.lang.RuntimePermission "setIO"; 
+
+  // This permission is needed to avoid test failures in subsequent tests that
+  // may be testing JMX functionality. Without this permission, old MBeans
+  // might not be unregistered from the MBean server. See DERBY-3561.
+  permission javax.management.MBeanPermission "org.apache.derby.*#[org.apache.derby:*]","unregisterMBean";
 };
 
 // JUnit jar file tries to read junit.properties in the user's



Mime
View raw message