diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index 9b759225..2fd92a1e 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -115,9 +115,6 @@ function(catch_discover_tests_impl) endforeach() endif() - # Catch2 string escape logic is a bit funky, double quotes are escaped but single - # slash is not, the following line of code tries to handle it but it can be brittle. - string(REGEX REPLACE [[\\([^"])]] [[\\\\\1]] output "${output}") string(JSON listings GET "${output}" "listings") string(JSON tests GET "${listings}" "tests") string(JSON tests_length LENGTH "${tests}")