RFR: CODETOOLS-7903143: jtreg includes `-javaoption` values in rerun section for @compile tasks in agentvm mode.
Jonathan Gibbons
jjg at openjdk.java.net
Wed Apr 6 21:07:35 UTC 2022
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.
-------------
Commit messages:
- CODETOOLS-7903143: jtreg includes `-javaoption` values in rerun section for @compile tasks in agentvm mode.
Changes: https://git.openjdk.java.net/jtreg/pull/67/files
Webrev: https://webrevs.openjdk.java.net/?repo=jtreg&pr=67&range=00
Issue: https://bugs.openjdk.java.net/browse/CODETOOLS-7903143
Stats: 8 lines in 8 files changed: 0 ins; 7 del; 1 mod
Patch: https://git.openjdk.java.net/jtreg/pull/67.diff
Fetch: git fetch https://git.openjdk.java.net/jtreg pull/67/head:pull/67
PR: https://git.openjdk.java.net/jtreg/pull/67
More information about the jtreg-dev
mailing list