From 70e069ea5d2bf85e3ee1f67276a359f97d75de89 Mon Sep 17 00:00:00 2001 From: Brian Burkhalter Date: Fri, 1 Jul 2016 12:54:18 -0700 Subject: [PATCH] 8160687: (fs) Cannot tell which WatchService test is not deleting temp directories "work*" Change name of "work" temp directory to "TestName" Reviewed-by: rriggs --- jdk/test/java/nio/file/WatchService/DeleteInterference.java | 2 +- jdk/test/java/nio/file/WatchService/LotsOfCancels.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/test/java/nio/file/WatchService/DeleteInterference.java b/jdk/test/java/nio/file/WatchService/DeleteInterference.java index 6a11271a546..347912c434c 100644 --- a/jdk/test/java/nio/file/WatchService/DeleteInterference.java +++ b/jdk/test/java/nio/file/WatchService/DeleteInterference.java @@ -49,7 +49,7 @@ public class DeleteInterference { * 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)); diff --git a/jdk/test/java/nio/file/WatchService/LotsOfCancels.java b/jdk/test/java/nio/file/WatchService/LotsOfCancels.java index cb7f9eff9af..e4abc308d67 100644 --- a/jdk/test/java/nio/file/WatchService/LotsOfCancels.java +++ b/jdk/test/java/nio/file/WatchService/LotsOfCancels.java @@ -50,7 +50,7 @@ public class LotsOfCancels { // 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));