summaryrefslogtreecommitdiffstats
path: root/Tests/CTestUpdateCommon.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-23 21:54:53 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-23 21:54:53 (GMT)
commitac89c8004b62cec540ffe1e7ea0f75c5af2328a4 (patch)
tree67a94cf95676a02682b73fe1b09d27f0947880cf /Tests/CTestUpdateCommon.cmake
parenta6c07844895332587837b8c18737146a16be7559 (diff)
downloadCMake-ac89c8004b62cec540ffe1e7ea0f75c5af2328a4.zip
CMake-ac89c8004b62cec540ffe1e7ea0f75c5af2328a4.tar.gz
CMake-ac89c8004b62cec540ffe1e7ea0f75c5af2328a4.tar.bz2
BUG: Fix CTest.UpdateCVS/SVN tests for win slashes
This fixes the tests to allow windows slashes in reported file names in the generated Update.xml file.
Diffstat (limited to 'Tests/CTestUpdateCommon.cmake')
-rw-r--r--Tests/CTestUpdateCommon.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake
index 6c2a123..7b670ae 100644
--- a/Tests/CTestUpdateCommon.cmake
+++ b/Tests/CTestUpdateCommon.cmake
@@ -37,7 +37,9 @@ function(check_updates build)
# Verify that expected entries exist
set(MISSING)
foreach(f ${ARGN})
- if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "<FullName>${f}</FullName>")
+ string(REPLACE "/" "[/\\\\]" regex "${f}")
+ string(REPLACE "." "\\." regex "${regex}")
+ if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "<FullName>${regex}</FullName>")
list(APPEND MISSING ${f})
endif()
endforeach(f)