The commit comment says this is only a problem on Windows. How about not running the test on Windows then, like https://garygregory.wordpress.com/2015/09/18/the-art-of-test-driven-development-running-unit-tests-conditionally/
? Gary On Mon, Oct 19, 2015 at 10:34 AM, Remko Popma <[email protected]> wrote: > I've added @Ignore to this test now. > > On Tue, Oct 20, 2015 at 1:44 AM, Remko Popma <[email protected]> > wrote: > >> I have the same problem... >> >> testWatchManager(org.apache.logging.log4j.core.util.WatchManagerTest) >> Time elapsed: 1.073 sec <<< ERROR! >> java.nio.file.FileSystemException: >> C:\Users\remko\git\logging-log4j2\log4j-core\target\testWatchFile: The >> process cannot access the file because it is being used by another process. >> >> at >> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) >> at >> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) >> at >> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) >> at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:165) >> at >> sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:278) >> at java.nio.file.Files.copy(Files.java:1274) >> at >> org.apache.logging.log4j.core.util.WatchManagerTest.testWatchManager(WatchManagerTest.java:63) >> >> >> On Mon, Oct 19, 2015 at 9:37 PM, Gary Gregory <[email protected]> >> wrote: >> >>> I get this from time to time. Not sure why yet... >>> >>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.078 >>> sec <<< FAILURE! - in org.apache.logging.log4j.core.util.WatchManagerTest >>> testWatchManager(org.apache.logging.log4j.core.util.WatchManagerTest) >>> Time elapsed: 1.078 sec <<< ERROR! >>> java.nio.file.FileSystemException: >>> E:\vcs\git\apache\logging\logging-log4j2\log4j-core\target\testWatchFile: >>> The process cannot access the file because it is being used by another >>> process. >>> >>> at >>> org.apache.logging.log4j.core.util.WatchManagerTest.testWatchManager(WatchManagerTest.java:63) >>> >>> Running org.apache.logging.log4j.MarkerMixInTest >>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 >>> sec - in org.apache.logging.log4j.MarkerMixInTest >>> >>> Results : >>> >>> Tests in error: >>> WatchManagerTest.testWatchManager:63 ╗ FileSystem >>> E:\vcs\git\apache\logging\lo... >>> >>> Tests run: 933, Failures: 0, Errors: 1, Skipped: 30 >>> >>> >>> -- >>> 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
