RFR: JDK-8265078: jpackage tests on Windows leave large temp files [v2]

Andy Herrick herrick at openjdk.java.net
Tue Apr 13 21:05:26 UTC 2021


> two changes:
> One to jpackage, when recursively removing directory, when IOException occurs, record it and continue (deleting as much as possible) before throwing the exception.
> The other to tests, when running jpackage via ProcessBuilder.execute(), set the "TMP" environment variable to the current value of System Property "java.io.tmpdir".  This causes the sub-process (jpackage) to output tmp files to the tmp file location used by the test. (So the test harness can clean up after test exits).

Andy Herrick has updated the pull request incrementally with one additional commit since the last revision:

  JDK-8265078: jpackage tests on Windows leave large temp files

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3473/files
  - new: https://git.openjdk.java.net/jdk/pull/3473/files/69949578..e78442ba

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3473&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3473&range=00-01

  Stats: 19 lines in 3 files changed: 3 ins; 4 del; 12 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3473.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3473/head:pull/3473

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


More information about the core-libs-dev mailing list