RFR: 7904153: JTReg should include crash log data in the failure node for xml reports

William Kemper wkemper at openjdk.org
Wed Feb 18 17:56:35 UTC 2026


On Wed, 18 Feb 2026 15:03:30 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Do you mean there's some bug in the current implementation of the XMLWriter?

I don't know if I'd call it a _bug_ as it seems to be well accepted behavior. When a test case contains multiple `@runs`, the `status.getReason` used in the failure node represents the outcome of the first _failed_ run. However, the `getOutput` used in `system-err` and `system-out` comes from the first test that was run. So, when you are presented with a failure in an xml file for a test case with multiple runs, the `system-err` and `system-out` will come from the first `run` and the `status` shown in the `failure` node will come from the last `run`.

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

PR Comment: https://git.openjdk.org/jtreg/pull/316#issuecomment-3922204061


More information about the jtreg-dev mailing list