diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-03-20 18:31:34 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-03-20 18:31:34 (GMT) |
commit | 562c17dfeb3e46e352912fa6345e74e0933763b7 (patch) | |
tree | 9357f8c7ee4b7cc256cd6ef3cd10bebe1a0127e3 /Source | |
parent | ca7668d99365c0c9a1e6d208b31a6ff7272a0afc (diff) | |
download | CMake-562c17dfeb3e46e352912fa6345e74e0933763b7.zip CMake-562c17dfeb3e46e352912fa6345e74e0933763b7.tar.gz CMake-562c17dfeb3e46e352912fa6345e74e0933763b7.tar.bz2 |
ENH: try markign non zero return values as warnings for make programs
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index 65f7570..af02ac3 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -695,6 +695,22 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command, *retVal = cmsysProcess_GetExitValue(cp); cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "Command exited with the value: " << *retVal << std::endl); + // if a non zero return value + if (retVal) + { + // If there was an error running command, report that on the dashboard. + cmCTestBuildErrorWarning errorwarning; + errorwarning.LogLine = 1; + errorwarning.Text = "*** WARNING non-zero return value from: "; + errorwarning.Text += argv[0]; + errorwarning.PreContext = ""; + errorwarning.PostContext = ""; + errorwarning.Error = false; + this->ErrorsAndWarnings.push_back(errorwarning); + this->TotalWarnings ++; + } + cmCTestLog(this->CTest, ERROR_MESSAGE, "There was an error: " + << cmsysProcess_GetErrorString(cp) << std::endl); } else if(result == cmsysProcess_State_Exception) { |