<i18n dev> RFR: 8326718: Test java/util/Formatter/Padding.java does not timeout on large inputs before JDK-8299677 [v2]
Chad Rakoczy
duke at openjdk.org
Wed Feb 28 00:00:01 UTC 2024
On Tue, 27 Feb 2024 20:01:20 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>> What is the issue with this? Is there a different way to set a timeout? The test tests that format does not take a long time to run so I would like to have a timeout
>
>> What is the issue with this? Is there a different way to set a timeout? The test tests that format does not take a long time to run so I would like to have a timeout
>
> Hard-coded timeout in a test are generally considered harmful as the test suite is run on a wide variety of systems, a single value could be too large for fast systems and too small for slow ones. The jtreg harness has an overall `-timeout:N` factor which can scale up or down all the timeouts of individual tests. I don't know offhand if there is an existing idiom to do this with junit tests from within jtreg.
Removed that timeout. Test fails before patch even when timeout factor is 10. Passes after patch within seconds. Default timeout should be good
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18033#discussion_r1505158893
More information about the i18n-dev
mailing list