RFR: 8276994: java/nio/channels/Channels/TransferTo.java leaves multi-GB files in /tmp

Alan Bateman alanb at openjdk.java.net
Sun Nov 14 16:11:31 UTC 2021


On Sat, 13 Nov 2021 21:56:36 GMT, Markus KARG <duke at openjdk.java.net> wrote:

> This PR proposes to cleanup *all* temp files of the `TransferTo` test, not just the 2GB files. Also it separates the actual test logic from the cleanup logic, so the test cases are simple to understand again as they are not interwoven with cleanup code anymore.

I think we need this. Instead, it would be better if the tests uses the test work directory so the files are easily found for post failure analysis. This isn't practical for the tests that create  >2GB files so I think leave the code that Lance put in there to delete them so they aren't archived when the work directory is zipped up.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6379


More information about the nio-dev mailing list