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.
This commit is contained in:
Brad King 2009-02-23 16:54:53 -05:00
parent a6c0784489
commit ac89c8004b
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ function(check_updates build)
# Verify that expected entries exist # Verify that expected entries exist
set(MISSING) set(MISSING)
foreach(f ${ARGN}) 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}) list(APPEND MISSING ${f})
endif() endif()
endforeach(f) endforeach(f)