summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestUpdateHandler.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-08-03 16:42:47 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2007-08-03 16:42:47 -0400
commit1d250298d06d3af89e9e57b42d3c6028a7450671 (patch)
tree1afe86506dd55930155d21fd6c5d08ba7c59daf0 /Source/CTest/cmCTestUpdateHandler.cxx
parent1a11a2d0c0dc04ef3bcae15ad765fe1f80607598 (diff)
downloadcmake-1d250298d06d3af89e9e57b42d3c6028a7450671.tar.gz
ENH: fatal error if cvs update fails
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.cxx')
-rw-r--r--Source/CTest/cmCTestUpdateHandler.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx
index fdf78af5b6..e47f967a5b 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();