changeset 14956:047f993e8275

8160687: (fs) Cannot tell which WatchService test is not deleting temp directories "work*" Summary: Change name of "work" temp directory to "TestName" Reviewed-by: rriggs
author bpb
date Fri, 01 Jul 2016 12:54:18 -0700
parents 2489316c9e36
children e13150d952e6
files test/java/nio/file/WatchService/DeleteInterference.java test/java/nio/file/WatchService/LotsOfCancels.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/file/WatchService/DeleteInterference.java	Fri Jul 01 14:29:18 2016 -0400
+++ b/test/java/nio/file/WatchService/DeleteInterference.java	Fri Jul 01 12:54:18 2016 -0700
@@ -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	Fri Jul 01 14:29:18 2016 -0400
+++ b/test/java/nio/file/WatchService/LotsOfCancels.java	Fri Jul 01 12:54:18 2016 -0700
@@ -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));