You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vladimir Ivanov (JIRA)" <ji...@apache.org> on 2006/07/14 07:43:30 UTC

[jira] Updated: (HARMONY-869) [classlib][logging] run of logging test lead to remove the deploy\jdk\jre\lib\logging.properties file

     [ http://issues.apache.org/jira/browse/HARMONY-869?page=all ]

Vladimir Ivanov updated HARMONY-869:
------------------------------------

    Attachment: DefaultPropertyHelper.patch

patch

> [classlib][logging] run of logging test lead to remove the deploy\jdk\jre\lib\logging.properties file
> -----------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-869
>          URL: http://issues.apache.org/jira/browse/HARMONY-869
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Vladimir Ivanov
>  Attachments: DefaultPropertyHelper.patch
>
> In the process of logging tests run the logging.properties file substituted by other file and both are deleted on the vm-exit.
> If the add string System.out.println("result of rename = " + bak.renameTo(file)); to the DefaultPropertyHelper.reset(File) it prints:
> =========
> ....
> [junit] Tests run: 40, Failures: 0, Errors: 0, Time elapsed: 0.13 sec
> [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.15 sec
> [junit] result of rename = true
> [junit] result of rename = false
> [junit] result of rename = false
> [junit] result of rename = false
> [junit] Tests FAILED
> ....
> =========
> because each test from FileHandlerTest.java, LogManagerTest.java, MemoryHandlerTest.java  and SocketHandlerTest.java  set up proper  ShutdownHook  to delete property file and rename '*.bak' file to 'logging.properties'.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira