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

Alan Bateman Alan.Bateman at oracle.com
Wed Jul 13 16:33:49 UTC 2016



On 13/07/2016 15:57, Brian Burkhalter wrote:
>
> On Jul 12, 2016, at 10:36 PM, Alan Bateman <Alan.Bateman at oracle.com 
> <mailto:Alan.Bateman at oracle.com>> wrote:
>
>> On 12/07/2016 21:36, Brian Burkhalter wrote:
>>> :
>>> Here’s an updated version which uses 
>>> FileUtils.deleteFileTreeWithRetry() and does not use deleteOnExit():
>>>
>>> http://cr.openjdk.java.net/~bpb/8160220/webrev.01/ 
>>> <http://cr.openjdk.java.net/%7Ebpb/8160220/webrev.01/>
>>>
>> Thinking about, this isn't needed. Since you've moved to the work 
>> directory then jtreg will do the clean-up (including retry). So the 
>> change should be to just move from /tmp to the work directory and you 
>> should be all set.
>
> So I should be able to remove FileUtils.deleteFileTreeWithRetry() and 
> the jdk.testlibrary references in *both* of these tests as well as the 
> original deleteFileTree() in DeleteInterference.
>
Yes, I think so as it will be cleaned up by the test harness.

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


More information about the nio-dev mailing list