Skip to content

add DEF_SOURCE_LINE to ctests #1848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clearer ident names in ctest -ll regex application
addresses review comment from @thetic.
  • Loading branch information
malsyned committed Apr 15, 2025
commit cde20a40779e13a2362d9ae4e616f68b504c262f
4 changes: 2 additions & 2 deletions cmake/Modules/_CppUTestDiscovery.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ string(CONCAT LL_LINE_REGEX
string(REGEX MATCHALL "[^\n]+\n" discovered_test_lines "${discovered_tests}")
if(TESTS_DETAILED)
foreach(line IN LISTS discovered_test_lines)
string(REGEX MATCH "${LL_LINE_REGEX}" __ign "${line}")
string(REGEX MATCH "${LL_LINE_REGEX}" __unused "${line}")
set(test_name "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}")
set(test_location "${CMAKE_MATCH_3}:${CMAKE_MATCH_4}")
add_test_to_script("${test_name}" "${test_location}" -st)
endforeach()
else()
foreach(line IN LISTS discovered_test_lines)
string(REGEX MATCH "${LL_LINE_REGEX}" __ign "${line}")
string(REGEX MATCH "${LL_LINE_REGEX}" __unused "${line}")
set(test_name "${CMAKE_MATCH_1}")
set(test_file "${CMAKE_MATCH_3}")
set(test_line "${CMAKE_MATCH_4}")
Expand Down