Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] "random" test failures on Windows

I have found that certain test failures, especially in the cleanup can be caused by not closing files.

This happens only on Windows as Windows will not allow you to delete a file that is open (Linux does not care). So deleting a project that contains a file that is open for example will fail.

This bug illustrates that:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=244610

This is non-deterministic because if the Input/OutputStream associated with the file is garbage collected, it will close the file and you won't see a problem.

So if you have "random" test failures and they happen on Windows, make sure you have closed all of your files.

Francis


--
You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go

Francis Upton IV
francis@xxxxxxxxxxxxxxxx
Tel   510 835 3123
Fax   510 779 5226
Cell  510 432 1589
Skype francisupton



Back to the top