[cmake-commits] hoffman committed cmCTestUpdateHandler.cxx 1.37 1.38
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Aug 3 16:42:49 EDT 2007
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv25429
Modified Files:
cmCTestUpdateHandler.cxx
Log Message:
ENH: fatal error if cvs update fails
Index: cmCTestUpdateHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestUpdateHandler.cxx,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- cmCTestUpdateHandler.cxx 26 Oct 2006 15:01:52 -0000 1.37
+++ cmCTestUpdateHandler.cxx 3 Aug 2007 20:42:47 -0000 1.38
@@ -317,7 +317,14 @@
checkoutErrorMessages += ostr.str();
updateProducedError = true;
}
- this->CTest->InitializeFromCommand(this->Command);
+ if(!this->CTest->InitializeFromCommand(this->Command))
+ {
+ cmCTestLog(this->CTest, HANDLER_OUTPUT,
+ " Fatal Error in initialize: "
+ << std::endl);
+ cmSystemTools::SetFatalErrorOccured();
+ return -1;
+ }
}
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Updating the repository: "
<< sourceDirectory << std::endl);
@@ -531,6 +538,7 @@
{
cmCTestLog(this->CTest, ERROR_MESSAGE, "Cannot open log file"
<< std::endl);
+ return -1;
}
std::string start_time = this->CTest->CurrentTime();
double elapsed_time_start = cmSystemTools::GetTime();
More information about the Cmake-commits
mailing list