harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-869) [classlib][logging] run of logging test lead to remove the deploy\jdk\jre\lib\logging.properties file
Date Fri, 14 Jul 2006 05:43:29 GMT
[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


Mime
View raw message