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 ka...@apache.org on 2010/12/23 10:20:20 UTC

svn commit: r1052203 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit: AssertFailureTest.policy AssertFailureTest1.policy

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