A few of the Config and Watch tests fail when building
and installing Log4perl 1.07 using the perl package
distributed with Cygwin. This happens because some
files are opened amd unlinked in the test and then
reopened by Log4perl without an intervening close
operation in the test. Because the test holds onto an
active file handle, the file associated with the handle
is not truly removed and thus prevents a new open
operation on the file.
This is probably only a problem on Windows systems
running with Cygwin's perl package, but the fix should
not affect other platforms. The only changes are the
addition of explicit close operations on the no longer
necessary file handles in the tests.
Patch for tests to be successful under Cygwin