Index: C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/src/test/java/tests/api/java/io/FileTest.java =================================================================== --- C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/src/test/java/tests/api/java/io/FileTest.java (revision 388424) +++ C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/src/test/java/tests/api/java/io/FileTest.java (working copy) @@ -646,6 +646,48 @@ assertTrue("File Should Already Be Deleted.", gone); } + public void test_deleteOnExitWithRunFinalizersOnExit() { + File f1 = new File(System.getProperty("java.io.tmpdir"), platformId + + "test_deleteOnExitWithRunFinalizersOnExit.txt"); + try { + FileOutputStream fos = new FileOutputStream(f1); + fos.close(); + } catch (IOException e) { + fail("Unexpected IOException During Test : " + e.getMessage()); + } + assertTrue("File Should Exist.", f1.exists()); + + try { + Object[] outs = Support_Exec + .execJava2( + new String[] { + "tests.support.Support_DeleteOnExitWithRunFinalizersOnExitTest", + f1.getPath() }, null, true); + if ((outs != null) && (outs[0] != null)) { + Process proc = (Process) outs[0]; + try { + proc.waitFor(); + if (proc.exitValue() != 0) { + fail("Process abnormally terminated with return code " + + proc.exitValue()); + } + } catch (Exception e) { + fail("Unexpected exception during test : " + e); + } + } else { + fail("Unable to obtain Process handle !"); + } + } catch (IOException e) { + fail("Unexpected IOException During Test + " + e.getMessage()); + } catch (InterruptedException e) { + fail("Unexpected InterruptedException During Test: " + e); + } + + boolean gone = !f1.exists(); + f1.delete(); + assertTrue("File Should Already Be Deleted.", gone); + } + /** * @tests java.io.File#equals(java.lang.Object) */ Index: C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/make/common/hyproperties.xml =================================================================== --- C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/make/common/hyproperties.xml (revision 388424) +++ C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/make/common/hyproperties.xml (working copy) @@ -40,5 +40,8 @@ + + + Index: C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/make/common/build.xml =================================================================== --- C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/make/common/build.xml (revision 388424) +++ C:/clear/development/Eclipse-32-M5/eclipse/workspace/Apache-Harmony/modules/luni/make/common/build.xml (working copy) @@ -87,9 +87,10 @@ - - - + + + + @@ -99,7 +100,6 @@ -