RFR: 7904101: intermittent failure in StreamsTest.agentvm.ok [v3]
Vladimir Petko
vpetko at openjdk.org
Tue Dec 2 19:50:14 UTC 2025
On Tue, 2 Dec 2025 12:06:17 GMT, Christian Stein <cstein at openjdk.org> wrote:
> > Alternative:
> > -Disable the test and make no assumptions about contents of the agent vm process output.
>
> Before looking deeper into the implementation, do I read this correctly, the a test makes "assumptions about contents of the agent vm process output"?
Yes, the test writes to the file descriptor [directly](https://github.com/openjdk/jtreg/blob/a6a32dd7c8250b4c06e904ccc94ffbcd8f009a43/test/streams/FileDescriptorTest.java#L42). The test is ran in the agent mode, and the agent server is supposed to capture stdout/stderr of the test and add it to the jtr.
The existing implemention has no synchronization so the log lines can be lost causing intermittent test failures.
-------------
PR Comment: https://git.openjdk.org/jtreg/pull/295#issuecomment-3603701113
More information about the jtreg-dev
mailing list