RFR: 8300339: Run jtreg in the work dir

David Holmes dholmes at openjdk.org
Mon Apr 7 05:15:51 UTC 2025


On Fri, 4 Apr 2025 14:59:35 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> We had a test setup failure in our distributed test system where the process running jtreg crashed. This caused the hs_err file to end up in the root of the source tree. Dropping crash files in the source tree is bad practice and makes it harder to find such files. We should change the current working directory to the work/output dir before launching jtreg to help avoid this situation in the future.

make/RunTests.gmk line 999:

> 997: 
> 998:   $1_COMMAND_LINE := \
> 999:       cd $$($1_TEST_SUPPORT_DIR) && $$(JTREG_JAVA) \

Is TEST_SUPPORT_DIR guaranteed to be an absolute path?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24452#discussion_r2030464613


More information about the build-dev mailing list