diff options
author | David Cole <david.cole@kitware.com> | 2009-10-13 20:39:48 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-13 20:39:48 (GMT) |
commit | 85feea2d0d7e14ddda7b1c6a80217634122c691f (patch) | |
tree | cba76e0dc790bd418687756f9574a8989d863226 /Source/cmCTest.cxx | |
parent | 4dc224e99a53e0ffe870ee3a8564ae4ab26933d5 (diff) | |
download | CMake-85feea2d0d7e14ddda7b1c6a80217634122c691f.zip CMake-85feea2d0d7e14ddda7b1c6a80217634122c691f.tar.gz CMake-85feea2d0d7e14ddda7b1c6a80217634122c691f.tar.bz2 |
Fix floating point comparison warnings. Thanks to Alex Neundorf for the patch.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index be08be1..8dace33 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1082,11 +1082,11 @@ int cmCTest::RunTest(std::vector<const char*> argv, // determine how much time we have double timeout = this->GetRemainingTimeAllowed() - 120; - if (this->TimeOut && this->TimeOut < timeout) + if (this->TimeOut > 0 && this->TimeOut < timeout) { timeout = this->TimeOut; } - if (testTimeOut + if (testTimeOut > 0 && testTimeOut < this->GetRemainingTimeAllowed()) { timeout = testTimeOut; @@ -1118,7 +1118,7 @@ int cmCTest::RunTest(std::vector<const char*> argv, // make sure we pass the timeout in for any build and test // invocations. Since --build-generator is required this is a // good place to check for it, and to add the arguments in - if (strcmp(argv[i],"--build-generator") == 0 && timeout) + if (strcmp(argv[i],"--build-generator") == 0 && timeout > 0) { args.push_back("--test-timeout"); cmOStringStream msg; |