8227438: [TESTLIB] Determine if file exists by Files.exists in function FileUtils.deleteFileIfExistsWithRetry
Reviewed-by: lancea, joehw
--- a/test/lib/jdk/test/lib/util/FileUtils.java Sat Jul 13 20:55:25 2019 +0900
+++ b/test/lib/jdk/test/lib/util/FileUtils.java Mon Jul 15 17:53:36 2019 +0800
@@ -96,7 +96,7 @@
*/
public static void deleteFileIfExistsWithRetry(Path path) throws IOException {
try {
- if (Files.exists(path)) {
+ if (!Files.notExists(path)) {
deleteFileWithRetry0(path);
}
} catch (InterruptedException x) {