From d49f98f75a252b1ce0382fa2e9e0345710b96ffb Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 Mar 2016 14:33:11 -0400 Subject: 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. --- test/run.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "]*>" "]*>" 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}") -- cgit v0.12