Skip to content

Commit

Permalink
Remove custom escape logic
Browse files Browse the repository at this point in the history
  • Loading branch information
uyha committed Nov 15, 2023
1 parent 9f9fdbc commit 8676720
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions extras/CatchAddTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 8676720

Please sign in to comment.