From ac89c8004b62cec540ffe1e7ea0f75c5af2328a4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 23 Feb 2009 16:54:53 -0500 Subject: 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. --- Tests/CTestUpdateCommon.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 "${f}") + string(REPLACE "/" "[/\\\\]" regex "${f}") + string(REPLACE "." "\\." regex "${regex}") + if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "${regex}") list(APPEND MISSING ${f}) endif() endforeach(f) -- cgit v0.12