[ https://issues.apache.org/jira/browse/DERBY-6864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen reopened DERBY-6864: --------------------------------------- Hmm... This fixed the issue in my environment, but it still fails in continuous integration tests on Windows: {noformat} junit.framework.AssertionFailedError at org.apache.derbyTesting.functionTests.tests.lang.RawDBReaderTest.tearDown(RawDBReaderTest.java:156) at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120) at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443) at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) {noformat} It's still a problem with deleting files, but there's no information about which files, because the tearDown() method of the test is simply asserting on the return value of File.delete(). I'll change it so that it uses BaseTestCase.assertDirectoryDeleted() instead. It provides some extra debug information when it fails. > RawDBReaderTest fails on Windows > -------------------------------- > > Key: DERBY-6864 > URL: https://issues.apache.org/jira/browse/DERBY-6864 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.13.0.0 > Environment: Windows 10 > JDK 8u71 > Derby trunk revision 1728254 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Fix For: 10.13.0.0 > > Attachments: d6864.diff > > > RawDBReaderTest fails on Windows with the following output: > {noformat} > .<assertDirectoryDeleted> attempt 1 left 2 files/dirs behind: > 0=extinout\recovery.sql 1=extinout > <assertDirectoryDeleted> attempt 2 left 2 files/dirs behind: > 0=extinout\recovery.sql 1=extinout > <assertDirectoryDeleted> attempt 3 left 2 files/dirs behind: > 0=extinout\recovery.sql 1=extinout > <assertDirectoryDeleted> attempt 4 left 2 files/dirs behind: > 0=extinout\recovery.sql 1=extinout > F > Time: 39,498 > There was 1 failure: > 1) RawDBReaderTest:embeddedjunit.framework.AssertionFailedError: Failed to > delete 2 files (root=C:\cygwin64\tmp\derbytst\extinout): > C:\cygwin64\tmp\derbytst\extinout\recovery.sql (isDir=false, canRead=true, > canWrite=true, size=801), C:\cygwin64\tmp\derbytst\extinout (isDir=true, > canRead=true, canWrite=true, size=0) > at > org.apache.derbyTesting.junit.BaseTestCase.assertDirectoryDeleted(BaseTestCase.java:1125) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:128) > at > org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:118) > at > org.apache.derbyTesting.junit.SupportFilesSetup.tearDown(SupportFilesSetup.java:130) > at junit.extensions.TestSetup$1.protect(TestSetup.java:24) > at junit.extensions.TestSetup.run(TestSetup.java:27) > FAILURES!!! > Tests run: 1, Failures: 1, Errors: 0 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)