mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-06 11:46:35 +00:00
8184961: jdk.test.lib.util.FileUtils.deleteFileWithRetry0 should wait for absence of a file
Reviewed-by: bpb
This commit is contained in:
parent
556bc16ab2
commit
d362d3fe3a
@ -98,7 +98,7 @@ public final class FileUtils {
|
||||
while (true) {
|
||||
try {
|
||||
Files.delete(path);
|
||||
while (Files.exists(path)) {
|
||||
while (!Files.notExists(path)) {
|
||||
times++;
|
||||
if (times > MAX_RETRY_DELETE_TIMES) {
|
||||
throw new IOException("File still exists after " + times + " waits.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user