JDK-8272600 : (test) Use native "sleep" in Basic.java
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-08-17
  • Updated: 2022-02-22
  • Resolved: 2021-09-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 17 JDK 18
17.0.3-oracleFixed 18 b16Fixed
Related Reports
Duplicate :  
Relates :  
Description
Use the native "sleep" program as the child when possible and it is available.
Previously, to make the tests portable a Java runtime was invoked with JavaChild providing a "sleep" function.
At least one test that is testing buffering when the child is destroyed requires the child to not produce any output, a condition which the VM could not guarantee, unexpected output was produced to stdout without any way to redirect it.
The Basic test may run more quickly by avoiding the overhead of invoking a Java Runtime.
Comments
Fix request [17u] I backport this for parity with 17.0.3-oracle. No risk, only a test change. Clean backport. SAP nightly testing passed.
11-02-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/153 Date: 2022-02-09 14:25:12 +0000
09-02-2022

Changeset: 0a361638 Author: Roger Riggs <rriggs@openjdk.org> Date: 2021-09-22 13:55:19 +0000 URL: https://git.openjdk.java.net/jdk/commit/0a361638c5ea4d3e109d950e34a61b4737c8f670
22-09-2021