diff options
| author | Brad King <brad.king@kitware.com> | 2017-12-07 12:14:38 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2017-12-07 13:33:19 (GMT) |
| commit | be4702781d5bfe092daa2f6bfa1012c047e2161a (patch) | |
| tree | 04a1341886022720a35ade3f323cc54a3fa6d1f1 /Tests/Module/WriteCompilerDetectionHeader | |
| parent | 66419bc04620c5748df77e2b563d65b0e97b623a (diff) | |
| download | CMake-be4702781d5bfe092daa2f6bfa1012c047e2161a.zip CMake-be4702781d5bfe092daa2f6bfa1012c047e2161a.tar.gz CMake-be4702781d5bfe092daa2f6bfa1012c047e2161a.tar.bz2 | |
CTest: Fix regression in test timeout compuatation
Refactoring in commit 66419bc046 (CTest: convert timeouts to
std::chrono::duration, 2017-11-20) accidentally changed the logic used
to compute the timeout for a test when it starts. It incorrectly limits
the maximum possible timeout to 2 minutes rather than 2 minutes less
than the total allowed test time remaining. Update the new logic to
restore the original behavior.
Avoid subtracting 2 minutes from our "infinite" timeout value to avoid
creating very large timeouts that are not "infinite" and may exceed
integer type ranges.
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader')
0 files changed, 0 insertions, 0 deletions
