summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-11 15:40:29 (GMT)
committerBrad King <brad.king@kitware.com>2017-12-11 15:41:48 (GMT)
commitba6caafa42afb7fa2c7d8d0d49c73d79efee1e9c (patch)
tree22dfb46aa85283b6648199c4379289df06514cd7 /Source/cmCTest.h
parent548e8f6ffedb57fcdee56633ba454ae0ddf38983 (diff)
downloadCMake-ba6caafa42afb7fa2c7d8d0d49c73d79efee1e9c.zip
CMake-ba6caafa42afb7fa2c7d8d0d49c73d79efee1e9c.tar.gz
CMake-ba6caafa42afb7fa2c7d8d0d49c73d79efee1e9c.tar.bz2
CTest: Use integer-representable value for "infinite" timeout
Refactoring in commit 66419bc046 (CTest: convert timeouts to std::chrono::duration, 2017-11-20) changed out "infinite" timeout to a value not representable by a 64-bit integer. This causes undefined behavior when e.g. KWSys Process converts the duration to a `long` to interact with system APIs. Use the old `1.0e7` maximum value.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index ba94866..418d576 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -208,6 +208,8 @@ public:
*/
std::chrono::duration<double> GetRemainingTimeAllowed();
+ static std::chrono::duration<double> MaxDuration();
+
/**
* Open file in the output directory and set the stream
*/