db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r500171 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
Date Fri, 26 Jan 2007 07:48:46 GMT
Author: kahatlen
Date: Thu Jan 25 23:48:46 2007
New Revision: 500171

URL: http://svn.apache.org/viewvc?view=rev&rev=500171
Log:
DERBY-2268: AccessControlException when exiting junit.swingui.TestRunner

Grant junit.jar permission to write to .junitsession.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy?view=diff&rev=500171&r1=500170&r2=500171
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
Thu Jan 25 23:48:46 2007
@@ -163,9 +163,11 @@
 // JUnit jar file tries to read junit.properties in the user's
 // home directory and seems to require permission to read the
 // property user.home as well.
+// junit.swingui.TestRunner writes to .junitsession on exit.
 grant codeBase "${derbyTesting.junit}" {
     permission java.util.PropertyPermission "user.home", "read";
     permission java.io.FilePermission "${user.home}${/}junit.properties", "read";
+    permission java.io.FilePermission "${user.home}${/}.junitsession", "write";
 };
 
 // Due to a problem running tests/derbynet/CompatibilityTest in the old test



Mime
View raw message