JDK 9 RFR of 8160687: (fs) Cannot tell which WatchService test is not deleting temp directories "work*"

Brian Burkhalter brian.burkhalter at oracle.com
Fri Jul 1 19:32:31 UTC 2016


Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8160687
Diff:		included below

Regression test run succeeded.

Thanks,

Brian

--- a/test/java/nio/file/WatchService/DeleteInterference.java
+++ b/test/java/nio/file/WatchService/DeleteInterference.java
@@ -49,7 +49,7 @@
      * directory.
      */
     public static void main(String[] args) throws Exception {
-        Path dir = Files.createTempDirectory("work");
+        Path dir = Files.createTempDirectory(“DeleteInterference");
         ExecutorService pool = Executors.newCachedThreadPool();
         try {
             Future<?> task1 = pool.submit(() -> openAndCloseWatcher(dir));

--- a/test/java/nio/file/WatchService/LotsOfCancels.java
+++ b/test/java/nio/file/WatchService/LotsOfCancels.java
@@ -50,7 +50,7 @@
         // one to bash on cancel, the other to poll the events
         ExecutorService pool = Executors.newCachedThreadPool();
         try {
-            Path top = Files.createTempDirectory("work");
+            Path top = Files.createTempDirectory(“LotsOfCancels");
             top.toFile().deleteOnExit();
             for (int i=1; i<=16; i++) {
                 Path dir = Files.createDirectory(top.resolve("dir-" + i));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20160701/95282855/attachment.html>


More information about the nio-dev mailing list