mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-26 18:20:28 +00:00
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:
parent
3520eff611
commit
70e069ea5d
@ -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));
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user