Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Alex Boisvert <boisvert@ex...> - 2000-05-18 17:13:15
Yesterday I continued my investigation of why the test cases failed on
It turns out I found a bug -- which I think I introduced -- in the
RecordFile code which wasn't synching the changes to disk when the
TransactionManager was synchronizing it's commit buffer. I'll commit
the fix later today.
The other thing I found is a bug in the test cases :). Actually a
platform issue. As you may know, on Windows you can't delete a file
which is currently opened. Whereas on Unix, you can delete a file even
if it's opened. In which case the file remains open but it is removed
from the filesystem namespace.
As you know, between many test cases we try to delete temporary files.
But on Windows, the temporary files don't get deleted because most of
the time, the file has not been properly closed. This breaks the
isolation between test cases which assume to have a clean slate
everytime they're run.
So we have two possible solutions: 1) try to explicitly close the
opened file in each test cases or 2) use different temporary files for
different test cases.
Option 1) looks cleaner but I after trying it, it looks like it's
difficult to close files properly in some test cases. I'll try harder
Alex Boisvert, XJ2EE Project Manager
Exoffice Technologies, Inc.