In log4j-core/src/test/java/org/apache/logging/log4j/junit/CleanFiles.java on line 48, could you try deleting the "assertTrue" part?
I get occasional test failures myself from the same test in my TeamCity instance, but it seems to be a different issue with the log file *not* being deleted! It's actually possible that this modified test has exposed a potential bug with the FileAppender code. It seems to be holding on to the file longer than it should. On 31 March 2014 13:54, Ralph Goers <[email protected]> wrote: > I’d guess it is Windows specific. I haven’t looked at what Matt did to > this yet. > > Ralph > > > > On Mar 31, 2014, at 11:08 AM, Gary Gregory <[email protected]> wrote: > > I just tested a clean trunk and I get the following failures: > > Failed tests: > ConfigurationTest.testLogToFile[0] Could not delete target\test.log, > last modifed 3/31/14 1:50 PM > ConfigurationTest.testConfiguredAppenders[0] Could not delete > target\test.log, last modifed 3/31/14 1:51 PM > ConfigurationTest.testLogger[0] Could not delete target\test.log, last > modifed 3/31/14 1:51 PM > ConfigurationTest.testLogToFile[1] Could not delete target\test.log, > last modifed 3/31/14 1:51 PM > ConfigurationTest.testConfiguredAppenders[1] Could not delete > target\test.log, last modifed 3/31/14 1:51 PM > ConfigurationTest.testLogger[1] Could not delete target\test.log, last > modifed 3/31/14 1:51 PM > ConfigurationTest.testLogToFile[2] Could not delete target\test.log, > last modifed 3/31/14 1:51 PM > ConfigurationTest.testConfiguredAppenders[2] Could not delete > target\test.log, last modifed 3/31/14 1:51 PM > ConfigurationTest.testLogger[2] Could not delete target\test.log, last > modifed 3/31/14 1:51 PM > FileOutputTest.testConfig:59 Couldn't delete file target\status.log > > Tests run: 542, Failures: 10, Errors: 0, Skipped: 15 > > I tested with: > > Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 > 08:51:28-0500) > Maven home: C:\Java\apache-maven-3.0.5\bin\.. > Java version: 1.6.0_45, vendor: Sun Microsystems Inc. > Java home: C:\Program Files\Java\jdk1.6.0_45\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > > and: > > Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 > 08:51:28-0500) > Maven home: C:\Java\apache-maven-3.0.5\bin\.. > Java version: 1.8.0_20-ea, vendor: Oracle Corporation > Java home: C:\Program Files\Java\*jdk1.8.0_20*\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos" > > Matt? Bueller? Anybody? > > Gary > > > On Mon, Mar 31, 2014 at 2:48 AM, Ralph Goers > <[email protected]>wrote: > >> Trunk is building for me. >> >> Ralph >> >> On Mar 30, 2014, at 7:43 PM, Gary Gregory <[email protected]> wrote: >> >> Hi All: >> >> I have a large change set (can't break it up into smaller bits) on my >> machine and it does not seem related to the following failures I see: >> >> Results : >> >> Failed tests: >> XmlFileAppenderTest.testFlushAtEndOfBatch:70 line1 incorrect: [ <Event >> logger="com.foo.Bar" timestamp="1396233402662" level="INFO" thread="main" >> fcqn="org.apache.logging.log4j.spi.AbstractLoggerProvider">], does not >> contain: [<log4j:Even >> t ] >> ConfigurationTest.testLogToFile[0] null >> ConfigurationTest.testConfiguredAppenders[0] null >> ConfigurationTest.testLogger[0] null >> ConfigurationTest.testLogToFile[1] null >> ConfigurationTest.testConfiguredAppenders[1] null >> ConfigurationTest.testLogger[1] null >> ConfigurationTest.testLogToFile[2] null >> ConfigurationTest.testConfiguredAppenders[2] null >> ConfigurationTest.testLogger[2] null >> FileOutputTest.testConfig:59 Couldn't delete file >> >> Tests in error: >> JpaH2AppenderTest>AbstractJpaAppenderTest.testBaseJpaEntityAppender:107 >> » AppenderLogging >> >> JpaH2AppenderTest>AbstractJpaAppenderTest.testPerformanceOfAppenderWith10000EventsUsingBasicEntity:224 >> » AppenderLogging >> >> JpaH2AppenderTest>AbstractJpaAppenderTest.testBasicJpaEntityAppender:169 » >> AppenderLogging >> >> JpaHyperSqlAppenderTest>AbstractJpaAppenderTest.testBaseJpaEntityAppender:107 >> » AppenderLogging >> >> JpaHyperSqlAppenderTest>AbstractJpaAppenderTest.testPerformanceOfAppenderWith10000EventsUsingBasicEntity:224 >> » AppenderLogging >> >> JpaHyperSqlAppenderTest>AbstractJpaAppenderTest.testBasicJpaEntityAppender:169 >> » AppenderLogging >> >> Tests run: 569, Failures: 11, Errors: 6, Skipped: 21 >> >> Can folks comment on whether they can do a clean build? >> >> Thank you! >> >> Gary >> >> -- >> E-Mail: [email protected] | [email protected] >> Java Persistence with Hibernate, Second >> Edition<http://www.manning.com/bauer3/> >> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> >> Spring Batch in Action <http://www.manning.com/templier/> >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory >> >> >> > > > -- > E-Mail: [email protected] | [email protected] > Java Persistence with Hibernate, Second > Edition<http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > > > -- Matt Sicker <[email protected]>
