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

Change name of "work" temp directory to "TestName"

Reviewed-by: rriggs
This commit is contained in:
Brian Burkhalter 2016-07-01 12:54:18 -07:00
parent 3520eff611
commit 70e069ea5d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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