diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-12-10 22:22:21 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-12-10 22:22:21 (GMT) |
commit | d8589e6437451ef174fc480d0dfc4e83e49b1b30 (patch) | |
tree | 1a57e8d1527d4c5861832b471f14974a56985058 /Source/CTest/cmCTestScriptHandler.cxx | |
parent | 66f587e7dcd127bf82bb175a8c7e9cc8cecb7a97 (diff) | |
download | CMake-d8589e6437451ef174fc480d0dfc4e83e49b1b30.zip CMake-d8589e6437451ef174fc480d0dfc4e83e49b1b30.tar.gz CMake-d8589e6437451ef174fc480d0dfc4e83e49b1b30.tar.bz2 |
ctest: count errors from scripts properly
In the unlikely event that someone has a billion+ scripts (or some
codepath returns negative numbers), we could overflow and make a pile of
errors a non-error. This change also allows us to use flags for the
error in the future rather than just "something went wrong".
Diffstat (limited to 'Source/CTest/cmCTestScriptHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestScriptHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx index 749eb58..f958e7b 100644 --- a/Source/CTest/cmCTestScriptHandler.cxx +++ b/Source/CTest/cmCTestScriptHandler.cxx @@ -183,7 +183,7 @@ int cmCTestScriptHandler::ProcessHandler() for (size_t i=0; i < this->ConfigurationScripts.size(); ++i) { // for each script run it - res += this->RunConfigurationScript + res |= this->RunConfigurationScript (cmSystemTools::CollapseFullPath(this->ConfigurationScripts[i]), this->ScriptProcessScope[i]); } |