# HG changeset patch # User fyuan # Date 1563184416 -28800 # Node ID 4b1de39beda387d953075384e8b36186b6e73dfd # Parent 901ab17af3ce3161df34fa652a313ea00fee0b3d 8227438: [TESTLIB] Determine if file exists by Files.exists in function FileUtils.deleteFileIfExistsWithRetry Reviewed-by: lancea, joehw diff -r 901ab17af3ce -r 4b1de39beda3 test/lib/jdk/test/lib/util/FileUtils.java --- 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) {