You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/09/20 19:45:03 UTC

[jira] Resolved: (LUCENE-2656) If tests fail, don't report about unclosed resources

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

Robert Muir resolved LUCENE-2656.
---------------------------------

      Assignee: Robert Muir
    Resolution: Fixed

Committed revision 999016, 999021 (3x)

> If tests fail, don't report about unclosed resources
> ----------------------------------------------------
>
>                 Key: LUCENE-2656
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2656
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: Tests
>    Affects Versions: 3.1, 4.0
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2656.patch
>
>
> LuceneTestCase ensures in afterClass() if you closed all your directories, which in turn will check if you have closed any open files.
> This is good, as a test will fail if we have resource leaks.
> But if a test truly fails, this is just confusing, because its usually not going to make it to the part of its code where it would call .close()
> So, if any tests fail, I think we should omit this check in afterClass()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org