Skip to content

ctest: Restore support for --timeout values higher than default test timeout

Brad King requested to merge brad.king/cmake:ctest-timeout-flag into master

Since refactoring in !8455 (merged) we accidentally truncate --timeout values to ctest's default TimeOut. Fix the logic to prefer the flag whenever the TIMEOUT property is not set.

In combination with the prior refactoring, this also fixes a bug that caused --timeout values of 10000000 seconds or more to be ignored.

Fixes: #23979 (closed)
Backport: release

Merge request reports