JDK 9 RFR of 8160220: (fs) Tests in jdk/test/java/nio/file/WatchService leave directory trees behind

Brian Burkhalter brian.burkhalter at oracle.com
Tue Jul 12 17:51:15 UTC 2016


On Jul 12, 2016, at 9:57 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

>>> The tests in this area use TestUtil.removeAll so you don't need to add deleteFileTree. Also if you expand the scope of the try/finally then you can get rid of deleteOnExit.
>> 
>> The change for https://bugs.openjdk.java.net/browse/JDK-8160687showed that LotsOfCancels was leaving files around before this change so there must be something else going on which needs to be identified.
>> 
> Yes, I suspect there was a VM crash at some point in the VM that happen to have run this test. The main issue with agentvm mode is that it runs many tests before it exists and so the delete-on-exit list builds up.

It does not sound as if it is the best idea to rely on deleteOnExit().

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20160712/df24f959/attachment.html>


More information about the nio-dev mailing list