[jira] [Commented] (DERBY-7003) Jacoco test run needs another permission

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DERBY-7003) Jacoco test run needs another permission

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/DERBY-7003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16536458#comment-16536458 ]

Rick Hillegas commented on DERBY-7003:
--------------------------------------

Attaching derby-7003-01-aa-extraJacocoPermission.diff. This patch adds an extra permission to the jacoco-sensitive policy files. Hopefully, this will let jacoco run without errors. I will run jacoco-complete as well as the usual test run.

Adds the following permission to the jacoco-sensitive policy files:

{noformat}
  permission java.io.FilePermission "${jacoco.active}${user.dir}${/}..${/}jacoco.exec", "read, write";
{noformat}

Touches the following files:

{noformat}
----------------------------------------

M       build.xml

Make the clobber target delete jacoco.exec if it exists.

----------------------------------------

 M      .
 M      tools/java

Make svn ignore jacoco-related files: the jacoco jars in tools/java
and the jacoco output file jacoco.exec.

----------------------------------------

M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/RuntimeInfoTest.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/SecureServerTest.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/SysinfoTest.policy
 M      java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/engine/noDeregisterPermission.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbc4/noAbortPermission.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/jdbcapi/LDAPTests.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.initial.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/luceneSupport.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/resultSetReader.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/Derby3980DeadlockTest.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/util/derby_tests.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/unitTests/junit/MissingPermissionsTest.policy
M       java/org.apache.derby.tests/org/apache/derbyTesting/unitTests/junit/MissingPermissionsTest2.policy
{noformat}


> Jacoco test run needs another permission
> ----------------------------------------
>
>                 Key: DERBY-7003
>                 URL: https://issues.apache.org/jira/browse/DERBY-7003
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.15.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>            Priority: Major
>         Attachments: derby-7003-01-aa-extraJacocoPermission.diff
>
>
> When I run the jacoco-complete target, I see FilePermission errors because write permission has not been granted to trunk/jacoco.exec. Read/write permissions are granted to the user.dir directory, which is a directory tree parallel to jacoco.exec. The following permission needs to be granted to the jacoco jars:
> {noformat}
>   permission java.io.FilePermission "${jacoco.active}${user.dir}${/}..${/}jacoco.exec", "read, write";
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)