8184961: jdk.test.lib.util.FileUtils.deleteFileWithRetry0 should wait for absence of a file
Reviewed-by: bpb
--- a/test/lib/jdk/test/lib/util/FileUtils.java Thu Jul 20 18:17:12 2017 +0000
+++ b/test/lib/jdk/test/lib/util/FileUtils.java Tue Jul 25 17:04:46 2017 -0700
@@ -98,7 +98,7 @@
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.");