diff --git a/modules/vstudio/tests/vc2010/test_config_props.lua b/modules/vstudio/tests/vc2010/test_config_props.lua
index 35732e73..45cbc6ba 100644
--- a/modules/vstudio/tests/vc2010/test_config_props.lua
+++ b/modules/vstudio/tests/vc2010/test_config_props.lua
@@ -359,7 +359,7 @@
--
function suite.onSanitizeAddress()
- p.action.set("vs2022")
+ p.action.set("vs2019")
sanitize { "Address" }
prepare()
test.capture [[
@@ -367,14 +367,14 @@ function suite.onSanitizeAddress()
Application
false
Unicode
- v143
+ v142
true
]]
end
-function suite.onSanitizeAddress_BeforeVS2022()
- p.action.set("vs2019")
+function suite.onSanitizeAddress_BeforeVS2019()
+ p.action.set("vs2017")
sanitize { "Address" }
prepare()
test.capture [[
@@ -382,27 +382,12 @@ function suite.onSanitizeAddress_BeforeVS2022()
Application
false
Unicode
- v142
+ v141
]]
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()
@@ -412,12 +397,27 @@ function suite.onSanitizeFuzzer_BeforeVS2022()
false
Unicode
v142
+ true
+
+ ]]
+end
+
+function suite.onSanitizeFuzzer_BeforeVS2019()
+ p.action.set("vs2017")
+ sanitize { "Fuzzer" }
+ prepare()
+ test.capture [[
+
+ Application
+ false
+ Unicode
+ v141
]]
end
function suite.onSanitizeAddressFuzzer()
- p.action.set("vs2022")
+ p.action.set("vs2019")
sanitize { "Address", "Fuzzer" }
prepare()
test.capture [[
@@ -425,7 +425,7 @@ function suite.onSanitizeAddressFuzzer()
Application
false
Unicode
- v143
+ v142
true
true
diff --git a/modules/vstudio/vs2010_vcxproj.lua b/modules/vstudio/vs2010_vcxproj.lua
index ef09e59e..0ee0d6eb 100644
--- a/modules/vstudio/vs2010_vcxproj.lua
+++ b/modules/vstudio/vs2010_vcxproj.lua
@@ -2509,7 +2509,7 @@
end
function m.sanitizers(cfg)
- if _ACTION >= "vs2022" and cfg.sanitize then
+ if _ACTION >= "vs2019" and cfg.sanitize then
if table.contains(cfg.sanitize, "Address") then
m.element("EnableASAN", nil, "true")
end