JDK-8263729 : [test] divert spurious output away from stream under test in ProcessBuilder Basic test
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-17
  • Updated: 2022-01-26
  • Resolved: 2021-03-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 7 JDK 8
11.0.12-oracleFixed 17 b15Fixed 7u341Fixed 8u331Fixed
Related Reports
Duplicate :  
Description
Intermittent failures on Windows in a test of destroying the child are caused by spurious output on the stream being tested. The test requires the stream to be blocked with no bytes expected.
The destroy of the child process may have unpredictable effects that are reported by the vm as log messages.

Diverting output from the VM away from the stream under test and redirect the output to the inherited file descriptor so it appears in the output of the test.
The fix applies to all platforms, though the spurious output was only seen on Windows.

Comments
Fix Request (11u) This fixes the intermittent failures and keeps codebases in sync (I see 11.0.12-oracle). Patch applies cleanly to 11u, passes tier{1,2} and java/lang/ProcessBuilder tests.
19-04-2021

Changeset: 0abbfb2f Author: Roger Riggs <rriggs@openjdk.org> Date: 2021-03-22 14:50:47 +0000 URL: https://git.openjdk.java.net/jdk/commit/0abbfb2f
22-03-2021