[ 
https://issues.apache.org/jira/browse/DERBY-6610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-6610:
--------------------------------------

    Attachment: tmp-permission.diff

I recently came across a problem to run NativeAuthenticationServiceTest against 
classes. The problem was that the following permission is granted to derby.jar, 
but not to the classes directory:

{code}
  // needed to create a temp file in order to open a database in a jar file
  permission java.io.FilePermission "${java.io.tmpdir}${/}-", 
"read,write,delete";
{code}

The attached patch, [^tmp-permission.diff], grants the extra permission to the 
classes directory. That seems to make both NativeAuthenticationServiceTest and 
DatabaseClassLoadingTest run fine.


> suites.All cannot be run with classes without failures
> ------------------------------------------------------
>
>                 Key: DERBY-6610
>                 URL: https://issues.apache.org/jira/browse/DERBY-6610
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.11.0.0
>            Reporter: Myrna van Lunteren
>            Priority: Minor
>         Attachments: tmp-permission.diff
>
>
> suites.All no longer runs cleanly for me when I run with just classes.
> It still runs fine with jars.
> We accepted this behavior at some point, but it is frustrating when you want 
> to 'quickly' run tests while still working on some details.
> One of the tests that failed for me was lang.DatabaseClassLoadingTest 
> (complaining about one of the databases not found), another was 
> lang.LuceneSupportPermsTest.
> If a test cannot run cleanly with classes, it should get skipped (preferably 
> both in the test itself and from the _Suite in which it is included).
> I also think some of the network server tests complain if derbynet.jar is not 
> found - I cannot off-hand remember if this causes the test to fail.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to