RFR: 8300339: Run jtreg in the work dir

Magnus Ihse Bursie ihse at openjdk.org
Mon Apr 7 09:58:59 UTC 2025


On Mon, 7 Apr 2025 05:13:09 GMT, David Holmes <dholmes 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?

Yes. All our path variables are absolute.

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

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


More information about the build-dev mailing list