diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-08-03 20:42:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-08-03 20:42:47 (GMT) |
commit | 1d250298d06d3af89e9e57b42d3c6028a7450671 (patch) | |
tree | 1afe86506dd55930155d21fd6c5d08ba7c59daf0 /Source/CTest | |
parent | 1a11a2d0c0dc04ef3bcae15ad765fe1f80607598 (diff) | |
download | CMake-1d250298d06d3af89e9e57b42d3c6028a7450671.zip CMake-1d250298d06d3af89e9e57b42d3c6028a7450671.tar.gz CMake-1d250298d06d3af89e9e57b42d3c6028a7450671.tar.bz2 |
ENH: fatal error if cvs update fails
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index fdf78af..e47f967 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -317,7 +317,14 @@ int cmCTestUpdateHandler::ProcessHandler() 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 @@ int cmCTestUpdateHandler::ProcessHandler() { 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(); |