summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-03-16 18:33:11 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-16 18:33:11 (GMT)
commitd49f98f75a252b1ce0382fa2e9e0345710b96ffb (patch)
treec3f0dc355abd2812ee95f875661ef6b50a27c473 /test
parent277fb4de79ca34b61f57c17fe703623c8e6ccdb4 (diff)
downloadCastXML-d49f98f75a252b1ce0382fa2e9e0345710b96ffb.zip
CastXML-d49f98f75a252b1ce0382fa2e9e0345710b96ffb.tar.gz
CastXML-d49f98f75a252b1ce0382fa2e9e0345710b96ffb.tar.bz2
test: Fix test output conversion for `*`
When using `TEST_UPDATE` to convert the actual test output to the expected test output we must convert `*` to `\*` to ensure it matches the actual content.
Diffstat (limited to 'test')
-rw-r--r--test/run.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run.cmake b/test/run.cmake
index e7b2c29..2b2c14e 100644
--- a/test/run.cmake
+++ b/test/run.cmake
@@ -90,8 +90,8 @@ if(msg)
if("$ENV{TEST_UPDATE}" AND expect_xml_file AND EXISTS "${xml}")
set(update_xml "${actual_xml}")
string(REGEX REPLACE "^<\\?xml version=\"1.0\"\\?>" "^<\\\\?xml version=\"1.0\"\\\\?>" update_xml "${update_xml}")
+ string(REGEX REPLACE "([(*)])" "\\\\\\1" update_xml "${update_xml}")
string(REGEX REPLACE "<GCC_XML[^>]*>" "<GCC_XML[^>]*>" update_xml "${update_xml}")
- string(REGEX REPLACE "([()])" "\\\\\\1" update_xml "${update_xml}")
string(REGEX REPLACE "mangled=\"[^\"]*\"" "mangled=\"[^\"]+\"" update_xml "${update_xml}")
string(REGEX REPLACE "artificial=\"1\"( throw=\"\")?" "artificial=\"1\"( throw=\"\")?" update_xml "${update_xml}")
string(REGEX REPLACE "size=\"[0-9]+\" align=\"[0-9]+\"" "size=\"[0-9]+\" align=\"[0-9]+\"" update_xml "${update_xml}")