diff options
author | Brad King <brad.king@kitware.com> | 2009-03-20 18:19:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-20 18:19:56 (GMT) |
commit | d66436e2e4b1e4d58fb2e7b7bb50e15fc7c30845 (patch) | |
tree | 9ff478fdb9fa6395145b6ecfa8f4d02cdc47be99 /Source/CTest/cmCTestUpdateHandler.cxx | |
parent | 1ce28d1db80e4b76cce9726eeea312c97cdfae16 (diff) | |
download | CMake-d66436e2e4b1e4d58fb2e7b7bb50e15fc7c30845.zip CMake-d66436e2e4b1e4d58fb2e7b7bb50e15fc7c30845.tar.gz CMake-d66436e2e4b1e4d58fb2e7b7bb50e15fc7c30845.tar.bz2 |
BUG: Fix return value of ctest_update
The CTest version control refactoring broke the value returned for the
ctest_update command's RETURN_VALUE argument. The value is supposed to
be the number of files updated, but the refactoring accidentally made it
the number of locally modified files after the update.
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index 5f4dfc0..41a6540 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -248,7 +248,8 @@ int cmCTestUpdateHandler::ProcessHandler() vc->WriteXML(os); int localModifications = 0; - if(int numUpdated = vc->GetPathCount(cmCTestVC::PathUpdated)) + int numUpdated = vc->GetPathCount(cmCTestVC::PathUpdated); + if(numUpdated) { cmCTestLog(this->CTest, HANDLER_OUTPUT, " Found " << numUpdated << " updated files\n"); @@ -290,7 +291,7 @@ int cmCTestUpdateHandler::ProcessHandler() } os << "</UpdateReturnStatus>" << std::endl; os << "</Update>" << std::endl; - return localModifications; + return numUpdated; } //---------------------------------------------------------------------- |