diff --git a/modules/vstudio/tests/vc2010/test_config_props.lua b/modules/vstudio/tests/vc2010/test_config_props.lua index 45cbc6ba..78f0c71e 100644 --- a/modules/vstudio/tests/vc2010/test_config_props.lua +++ b/modules/vstudio/tests/vc2010/test_config_props.lua @@ -388,6 +388,21 @@ function suite.onSanitizeAddress_BeforeVS2019() end function suite.onSanitizeFuzzer() + p.action.set("vs2022") + sanitize { "Fuzzer" } + prepare() + test.capture [[ + + Application + false + Unicode + v143 + true + + ]] +end + +function suite.onSanitizeFuzzer_BeforeVS2022() p.action.set("vs2019") sanitize { "Fuzzer" } prepare() @@ -397,26 +412,27 @@ function suite.onSanitizeFuzzer() false Unicode v142 - true ]] end -function suite.onSanitizeFuzzer_BeforeVS2019() - p.action.set("vs2017") - sanitize { "Fuzzer" } +function suite.onSanitizeAddressFuzzer() + p.action.set("vs2022") + sanitize { "Address", "Fuzzer" } prepare() test.capture [[ Application false Unicode - v141 + v143 + true + true ]] end -function suite.onSanitizeAddressFuzzer() +function suite.onSanitizeAddressFuzzer_BeforeVS2022() p.action.set("vs2019") sanitize { "Address", "Fuzzer" } prepare() @@ -427,7 +443,6 @@ function suite.onSanitizeAddressFuzzer() Unicode v142 true - true ]] end diff --git a/modules/vstudio/vs2010_vcxproj.lua b/modules/vstudio/vs2010_vcxproj.lua index 0ee0d6eb..fe84c4f3 100644 --- a/modules/vstudio/vs2010_vcxproj.lua +++ b/modules/vstudio/vs2010_vcxproj.lua @@ -2513,6 +2513,8 @@ if table.contains(cfg.sanitize, "Address") then m.element("EnableASAN", nil, "true") end + end + if _ACTION >= "vs2022" and cfg.sanitize then if table.contains(cfg.sanitize, "Fuzzer") then m.element("EnableFuzzer", nil, "true") end