Changeset: b857eff97c2f for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/b857eff97c2f
Modified Files:
        tests/TLSTester.java
Branch: default
Log Message:

Delete temporary files on exit.

It is not enough to just delete the parent directory on exit, since it
is not empty if the files aren't deleted, and deletion of a non-empty
directory fails.


diffs (11 lines):

diff --git a/tests/TLSTester.java b/tests/TLSTester.java
--- a/tests/TLSTester.java
+++ b/tests/TLSTester.java
@@ -102,6 +102,7 @@ public final class TLSTester {
                        tempDir.deleteOnExit();
                }
                File outPath = new File(tempDir, resource.substring(1));
+               outPath.deleteOnExit();
                try (InputStream in = fetchData(resource); FileOutputStream out 
= new FileOutputStream(outPath)) {
                        byte[] buffer = new byte[12];
                        while (true) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to