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
--- 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));