Integrated: 7904084: Unset javaOpts and jtregOpts in jtreg.sh
SendaoYan
syan at openjdk.org
Thu Jan 29 09:50:08 UTC 2026
On Wed, 24 Sep 2025 13:53:39 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
>
> In jtreg.sh it will combine all the java options and jtreg options in the `for i in "$@"` loop. SHELL use javaOpts and jtregOpts as global varable by default, this means jtreg.sh will receive the value of javaOpts and jtregOpts outside. I think this unexpected.
> To avoid this siutation, I think we should unset javaOpts and jtregOpts before use it.
This pull request has now been integrated.
Changeset: 3c9174b5
Author: SendaoYan <syan at openjdk.org>
Committer: Christian Stein <cstein at openjdk.org>
URL: https://git.openjdk.org/jtreg/commit/3c9174b58e60e1231322509012a0f0a04aba2980
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
7904084: Unset javaOpts and jtregOpts in jtreg.sh
Reviewed-by: cstein, liach
-------------
PR: https://git.openjdk.org/jtreg/pull/291
More information about the jtreg-dev
mailing list