db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1052203 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit: AssertFailureTest.policy AssertFailureTest1.policy
Date Thu, 23 Dec 2010 09:20:20 GMT
Author: kahatlen
Date: Thu Dec 23 09:20:19 2010
New Revision: 1052203

URL: http://svn.apache.org/viewvc?rev=1052203&view=rev
Log:
DERBY-4950: AccessControlException when running AssertFailureTest from Ant

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.policy
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest1.policy

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.policy?rev=1052203&r1=1052202&r2=1052203&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.policy
Thu Dec 23 09:20:19 2010
@@ -78,6 +78,10 @@ grant codeBase "${derbyTesting.codeclass
 //-----------------------------------------------------------------------------
 };
 
+grant codeBase "${derbyTesting.junit}" {
+    // This permission is needed when running the tests using ant 1.7
+    permission java.io.FilePermission "${user.dir}${/}*", "write";
+};
 
 // Ant's junit runner requires setOut to redirect the System output streams
 // to the forked JVM used when running junit tests inside Ant. Ant requires

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest1.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest1.policy?rev=1052203&r1=1052202&r2=1052203&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest1.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest1.policy
Thu Dec 23 09:20:19 2010
@@ -73,6 +73,10 @@ grant codeBase "${derbyTesting.codeclass
 
 };
 
+grant codeBase "${derbyTesting.junit}" {
+    // This permission is needed when running the tests using ant 1.7
+    permission java.io.FilePermission "${user.dir}${/}*", "write";
+};
 
 // Ant's junit runner requires setOut to redirect the System output streams
 // to the forked JVM used when running junit tests inside Ant. Ant requires



Mime
View raw message