[
https://issues.apache.org/jira/browse/LUCENE-5154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13724831#comment-13724831
]
Robert Muir commented on LUCENE-5154:
-------------------------------------
[junit4] Tests with failures:
solr/solrj: many
solr/contrib/dataimporthandler:
[junit4] -
org.apache.solr.handler.dataimport.TestDocBuilder.testDeltaImportNoRows_MustNotCommit
solr/contrib/velocity:
[junit4] -
org.apache.solr.velocity.VelocityResponseWriterTest.testCustomParamTemplate
[junit4] -
org.apache.solr.velocity.VelocityResponseWriterTest.testSolrResourceLoaderTemplate
> ban tests from writing to CWD
> -----------------------------
>
> Key: LUCENE-5154
> URL: https://issues.apache.org/jira/browse/LUCENE-5154
> Project: Lucene - Core
> Issue Type: Test
> Reporter: Robert Muir
> Attachments: LUCENE-5154.patch
>
>
> Currently each forked jvm has cwd = tempDir = .
> This provides some minimal protection against tests in different jvms from
> interfering with each other, but we can do much better by splitting these
> concerns: and setting cwd = . and tempDir = ./temp
> Tests that write files to CWD can confuse IDE users because they can create
> dirty checkouts or other issues between different runs, and of course can
> interfere with other tests in the *same* jvm (there are other possible ways
> to do this to).
> So a test like this should fail with SecurityException, but currently does
> not.
> {code}
> public void testBogus() throws Exception {
> File file = new File("foo.txt");
> FileOutputStream os = new FileOutputStream(file);
> os.write(1);
> os.close();
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]