mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
Remove custom escape logic
This commit is contained in:
parent
c541a31bbf
commit
41ecdb6f55
@ -115,9 +115,6 @@ function(catch_discover_tests_impl)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
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 listings GET "${output}" "listings")
|
||||||
string(JSON tests GET "${listings}" "tests")
|
string(JSON tests GET "${listings}" "tests")
|
||||||
string(JSON tests_length LENGTH "${tests}")
|
string(JSON tests_length LENGTH "${tests}")
|
||||||
|
Loading…
Reference in New Issue
Block a user