RFR: 7903961: Make default timeout configurable

Christian Stein cstein at openjdk.org
Thu Apr 3 10:46:20 UTC 2025


On Wed, 2 Apr 2025 14:14:18 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> jtreg already exports the following timeout-related system property:
>>> `test.timeout.factor`	`TESTTIMEOUTFACTOR`	_The timeout factor to be applied to the default timeout for the test._
>> https://openjdk.org/jtreg/tag-spec.html#testvars
>> 
>> Test code and also test frameworks may want to adjust their bevaviour according both of these values. For example, having a test method-bound timeout or an assertion-based timeout makes more sense when the test author may react on the outer boundaries communicated by jtreg.
>
> Hello Christian, I had forgotten that the test timeout factor gets exposed to test code as a property. Having said that, the test timeout factor is the final determined value unlike this proposed default timeout property which is a default value and may not even be the actual timeout that's ultimately used by jtreg.

As discussed offline, this PR won't export that property. It can be done in a follow-up work.

-------------

PR Review Comment: https://git.openjdk.org/jtreg/pull/253#discussion_r2026727163


More information about the jtreg-dev mailing list