Integrated: 7903884: jtreg -nativepath should support relative path

Jaikiran Pai jpai at openjdk.org
Tue Aug 26 09:36:51 UTC 2025


On Sun, 24 Aug 2025 10:19:19 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review of this change which addresses https://bugs.openjdk.org/browse/CODETOOLS-7903884?
> 
> jtreg supports the `-nativepath` option. When set, this represents the directory in which native libraries can be located by a test. In one part of the code, jtreg uses this value to configure the operating system specific library path environment variables (for example `DYLD_LIBRARY_PATH` environment variable on macos). The issue here is that when setting this value, the path that was provided to `-nativepath` isn't converted to an absolute path. That causes native library lookup failures when a test requiring those native libraries is run.
> 
> The commit in this PR addresses the issue by making sure that the path is converted to an absolute path when setting it on the `RegressionParameters`. This then allows the rest of the jtreg code to consistently use an absolute path for that option.
> 
> A new self test has been introduced to verify this behaviour. This and the existing self tests continue to pass with this change.

This pull request has now been integrated.

Changeset: 2253e082
Author:    Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jtreg/commit/2253e0822e6debfe3b9f3848cd39937ce99387ec
Stats:     27 lines in 2 files changed: 23 ins; 0 del; 4 mod

7903884: jtreg -nativepath should support relative path

Reviewed-by: cstein

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

PR: https://git.openjdk.org/jtreg/pull/278


More information about the jtreg-dev mailing list