Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6736

The jacoco-junit target fails to store coverage data for some sub-suites

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.12.1.1
    • 10.12.1.1
    • Test
    • None
    • Regression

    Description

      The console log for the code coverage test runs at https://builds.apache.org/job/Derby-JaCoCo/ shows that JaCoCo fails to write coverage data for the following test suites:

      lang
      jdbcapi
      store
      engine
      encryption

      It is caused by the following permissions-related exception:

          [junit] java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/jenkins/jenkins-slave/workspace/Derby-JaCoCo/trunk/junit_20140912_1758/jacoco.exec" "write")
          [junit] 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
          [junit] 	at java.security.AccessController.checkPermission(AccessController.java:559)
          [junit] 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
          [junit] 	at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
          [junit] 	at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
          [junit] 	at org.jacoco.agent.rt.internal_9dd1198.output.FileOutput.openFile(FileOutput.java:67)
          [junit] 	at org.jacoco.agent.rt.internal_9dd1198.output.FileOutput.writeExecutionData(FileOutput.java:53)
          [junit] 	at org.jacoco.agent.rt.internal_9dd1198.Agent.shutdown(Agent.java:143)
          [junit] 	at org.jacoco.agent.rt.internal_9dd1198.Agent$1.run(Agent.java:60)
      

      The result of this is that the coverage report shows lower coverage than what's actually covered by the tests.

      Attachments

        1. d6736-1a.diff
          2 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: