diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-01-14 18:48:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-01-14 18:48:03 (GMT) |
commit | 046449e2f71e22a2cf46b9774665250ffa9da27c (patch) | |
tree | 5880475fb93859892a1c60287c05b72d1decebef /Source/CTest/cmCTestBuildHandler.cxx | |
parent | 82c3afcf6f78833e55bc6140799b5809a4527f03 (diff) | |
download | CMake-046449e2f71e22a2cf46b9774665250ffa9da27c.zip CMake-046449e2f71e22a2cf46b9774665250ffa9da27c.tar.gz CMake-046449e2f71e22a2cf46b9774665250ffa9da27c.tar.bz2 |
ENH: fix return value to ctest_build and remove debug print in cmProcess
Diffstat (limited to 'Source/CTest/cmCTestBuildHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index a730981..ab19b7b 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -475,7 +475,7 @@ int cmCTestBuildHandler::ProcessHandler() } this->GenerateDartBuildOutput( xofs, this->ErrorsAndWarnings, elapsed_build_time); - return res; + return retVal; } //---------------------------------------------------------------------- @@ -724,7 +724,6 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command, errorwarning.Error = false; this->ErrorsAndWarnings.push_back(errorwarning); this->TotalWarnings ++; - return *retVal; // return the program return value } } } @@ -735,13 +734,11 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command, *retVal = cmsysProcess_GetExitException(cp); cmCTestLog(this->CTest, WARNING, "There was an exception: " << *retVal << std::endl); - return *retVal; } } else if(result == cmsysProcess_State_Expired) { cmCTestLog(this->CTest, WARNING, "There was a timeout" << std::endl); - return -1; } else if(result == cmsysProcess_State_Error) { @@ -757,12 +754,10 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command, this->TotalErrors ++; cmCTestLog(this->CTest, ERROR_MESSAGE, "There was an error: " << cmsysProcess_GetErrorString(cp) << std::endl); - return -1; } cmsysProcess_Delete(cp); - - return 0; + return result; } //###################################################################### |