RFR: 8272600: (test) Use native "sleep" in Basic.java [v3]

David Holmes dholmes at openjdk.java.net
Thu Sep 2 05:07:31 UTC 2021

On Wed, 1 Sep 2021 15:12:16 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> I've had very inconsistent results using the Windows 'timeout' command.
> There appear to multiple versions. Some give an error message "Type "TIMEOUT /?" for usage.", (Windows 10)
> others a error message "Try 'timeout --help' for more information." (Windows 2016)
> And in some cases, it does not appear to wait the entire time requested and one of the test fails.

The `timeout --help` does not appear to be the Windows command, but a bash variant so I'm assuming you were running under Cygwin or some such environment? Note it is completely different to the Windows timeout command and not what you want.


PR: https://git.openjdk.java.net/jdk/pull/5239

More information about the core-libs-dev mailing list