RFR: CODETOOLS-7903143: jtreg includes `-javaoption` values in rerun section for @compile tasks in agentvm mode.

Iris Clark iris at openjdk.java.net
Wed Apr 6 21:54:59 UTC 2022


On Wed, 6 Apr 2022 20:59:57 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

> Please review a trivial code fix and corresponding bug fix, to address the issue that jtreg incorrectly reports inapplicable options in the rerun info for a `@compile` section.
> 
> Background, values for the `-javaoption` should only be applied when running tests (@run main, etc) and not when compiling tests (@compile, @build).   That is true when the test is executed, but not true when generating the `rerun` script.
> For `othervm` it's not an issue, because the `rerun` script is more directly derived from the command that is executed, but for `agentvm` the rerun info is just a synthesized approximation.

Marked as reviewed by iris (Reviewer).

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

PR: https://git.openjdk.java.net/jtreg/pull/67


More information about the jtreg-dev mailing list