7086071: tools/javac/7079713/TestCircularClassfile.java fails on windows
authorjjh
Thu, 01 Sep 2011 14:35:59 -0700
changeset 10456 22e3243c8a81
parent 10455 3d070be0fff8
child 10457 644ffe54b5c7
7086071: tools/javac/7079713/TestCircularClassfile.java fails on windows Summary: delete file before renaming another file to it Reviewed-by: jjg
langtools/test/tools/javac/7079713/TestCircularClassfile.java
--- 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) {