diff options
author | Brad King <brad.king@kitware.com> | 2016-03-16 18:33:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-16 18:33:11 (GMT) |
commit | d49f98f75a252b1ce0382fa2e9e0345710b96ffb (patch) | |
tree | c3f0dc355abd2812ee95f875661ef6b50a27c473 | |
parent | 277fb4de79ca34b61f57c17fe703623c8e6ccdb4 (diff) | |
download | CastXML-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.
-rw-r--r-- | test/run.cmake | 2 |
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}") |