summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorPedro Navarro <pnavarro@netflix.com>2014-01-22 01:02:25 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-22 13:33:33 (GMT)
commit243cfc2f6f467c71e6dc5af0b1fb28980a31a5ae (patch)
tree29205f9933c344a49dee9a2e1bea43873f97f02a /Tests
parenta86865e96c55c8a35615c24af0cf1c990f4bba68 (diff)
downloadCMake-243cfc2f6f467c71e6dc5af0b1fb28980a31a5ae.zip
CMake-243cfc2f6f467c71e6dc5af0b1fb28980a31a5ae.tar.gz
CMake-243cfc2f6f467c71e6dc5af0b1fb28980a31a5ae.tar.bz2
ctest_update: Handle P4 unknown revisions more robustly
Mark unknown revisions as such and fail instead of reporting revision 0. Otherwise CTest reports massive file updates between revisions when the server timeouts while trying to fetch the current revision number.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CTestUpdateCommon.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake
index db4e08d..642a618 100644
--- a/Tests/CTestUpdateCommon.cmake
+++ b/Tests/CTestUpdateCommon.cmake
@@ -54,7 +54,9 @@ function(check_updates build)
set(EXTRA "${UPDATE_XML_ENTRIES}")
list(REMOVE_ITEM EXTRA ${ARGN} ${UPDATE_EXTRA} ${UPDATE_MAYBE})
set(MISSING "${ARGN}" ${UPDATE_EXTRA})
- list(REMOVE_ITEM MISSING ${UPDATE_XML_ENTRIES})
+ if(NOT "" STREQUAL "${UPDATE_XML_ENTRIES}")
+ list(REMOVE_ITEM MISSING ${UPDATE_XML_ENTRIES})
+ endif()
if(NOT UPDATE_NOT_GLOBAL)
set(rev_elements Revision PriorRevision ${UPDATE_GLOBAL_ELEMENTS})