OpenJDK / amber / amber
changeset 10456:22e3243c8a81
7086071: tools/javac/7079713/TestCircularClassfile.java fails on windows
Summary: delete file before renaming another file to it
Reviewed-by: jjg
author | jjh |
---|---|
date | Thu, 01 Sep 2011 14:35:59 -0700 |
parents | 3d070be0fff8 |
children | 644ffe54b5c7 |
files | langtools/test/tools/javac/7079713/TestCircularClassfile.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/langtools/test/tools/javac/7079713/TestCircularClassfile.java Thu Sep 01 09:14:25 2011 -0700 +++ b/langtools/test/tools/javac/7079713/TestCircularClassfile.java Thu Sep 01 14:35:59 2011 -0700 @@ -149,6 +149,7 @@ //step 3: move a classfile from the temp folder to the test subfolder File fileToMove = new File(tmpDir, tk.targetClass); File target = new File(destDir, tk.targetClass); + target.delete(); boolean success = fileToMove.renameTo(target); if (!success) {