diff options
author | Brad King <brad.king@kitware.com> | 2015-06-15 13:45:27 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-06-15 13:45:27 (GMT) |
commit | 919b116f98f20e685999ab8e94415c11228d7d88 (patch) | |
tree | e469f32b31f981868773bbcbac501a6c3d3b8b4b /Source | |
parent | f8bc48413cc360f9dea377761ea833f3244bc74a (diff) | |
parent | 493388ce48cb4188068c6f0379bb2afa60c0a41a (diff) | |
download | CMake-919b116f98f20e685999ab8e94415c11228d7d88.zip CMake-919b116f98f20e685999ab8e94415c11228d7d88.tar.gz CMake-919b116f98f20e685999ab8e94415c11228d7d88.tar.bz2 |
Merge topic 'ctest_update-RETURN_VALUE'
493388ce ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610)
bcf25803 Tests: Teach CTest.Update* tests to check ctest_update return code
b6667729 Tests: Simplify CTest.UpdateGIT QUIET mode test
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index 8494d28..963e501 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -283,13 +283,13 @@ int cmCTestUpdateHandler::ProcessHandler() { xml.Content("Update command failed:\n"); xml.Content(vc->GetUpdateCommandLine()); - cmCTestLog(this->CTest, ERROR_MESSAGE, " Update command failed: " + cmCTestLog(this->CTest, HANDLER_OUTPUT, " Update command failed: " << vc->GetUpdateCommandLine() << "\n"); } xml.EndElement(); // UpdateReturnStatus xml.EndElement(); // Update xml.EndDocument(); - return numUpdated; + return updated? numUpdated : -1; } //---------------------------------------------------------------------- |