[cmake-commits] martink committed cmCTestBuildHandler.cxx 1.53 1.54
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Mar 20 13:31:36 EST 2007
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv16115/Source/CTest
Modified Files:
cmCTestBuildHandler.cxx
Log Message:
ENH: try markign non zero return values as warnings for make programs
Index: cmCTestBuildHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestBuildHandler.cxx,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- cmCTestBuildHandler.cxx 20 Mar 2007 18:11:32 -0000 1.53
+++ cmCTestBuildHandler.cxx 20 Mar 2007 18:31:34 -0000 1.54
@@ -695,6 +695,22 @@
*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)
{
More information about the Cmake-commits
mailing list