8160687: (fs) Cannot tell which WatchService test is not deleting temp directories "work*"
authorbpb
Fri, 01 Jul 2016 12:54:18 -0700
changeset 39335 8dcd06ba5682
parent 39334 e5e90a7fe509
child 39336 3e9ca73f58ca
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
jdk/test/java/nio/file/WatchService/DeleteInterference.java
jdk/test/java/nio/file/WatchService/LotsOfCancels.java
--- a/jdk/test/java/nio/file/WatchService/DeleteInterference.java	Fri Jul 01 14:29:18 2016 -0400
+++ b/jdk/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/jdk/test/java/nio/file/WatchService/LotsOfCancels.java	Fri Jul 01 14:29:18 2016 -0400
+++ b/jdk/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));