RFR: 7903884: jtreg -nativepath should support relative path

Christian Stein cstein at openjdk.org
Tue Aug 26 08:36:56 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.

Marked as reviewed by cstein (Reviewer).

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

PR Review: https://git.openjdk.org/jtreg/pull/278#pullrequestreview-3154567046


More information about the jtreg-dev mailing list