Browse Source

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".
Ben Boeckel 11 years ago
parent
commit
d8589e6437
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/CTest/cmCTestScriptHandler.cxx

+ 1 - 1
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]);
     }