Disable Edit and Continue for test suites.

Disable Edit and Continue for test suites. Edit and Continue in MSVC
can cause the __LINE__ macro to produce invalid values, which breaks
the usability of Catch2 output on failed tests.
This commit is contained in:
gibbed 2021-06-26 00:56:18 -05:00 committed by Rick Gibbed
parent 89e26d7b2b
commit 2ac388527b
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,11 @@ local function combined_test_suite(test_suite_name, project_root, base_path, con
project_root.."/src/xenia/base/main_"..platform_suffix..".cc",
base_path.."/**_test.cc",
})
filter("toolset:msc")
-- Edit and Continue in MSVC can cause the __LINE__ macro to produce
-- invalid values, which breaks the usability of Catch2 output on
-- failed tests.
editAndContinue("Off")
end
local function split_test_suite(test_suite_name, project_root, base_path, config)
@ -58,6 +63,11 @@ local function split_test_suite(test_suite_name, project_root, base_path, config
project_root.."/"..build_tools_src.."/test_suite_main.cc",
file_path,
})
filter("toolset:msc")
-- Edit and Continue in MSVC can cause the __LINE__ macro to produce
-- invalid values, which breaks the usability of Catch2 output on
-- failed tests.
editAndContinue("Off")
end
end