Skip to content

Commit 0eae0e6

Browse files
authored
build tests using gmock via catkin_add_gmock (#148)
Otherwise these suddenly started to fail for me on Lunar Linux...
1 parent d61e170 commit 0eae0e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (CATKIN_ENABLE_TESTING)
1818
catkin_add_gtest(${PROJECT_NAME}-test-properties test_properties.cpp)
1919
target_link_libraries(${PROJECT_NAME}-test-properties ${PROJECT_NAME} gtest_main)
2020

21-
catkin_add_gtest(${PROJECT_NAME}-test-cost_queue test_cost_queue.cpp)
21+
catkin_add_gmock(${PROJECT_NAME}-test-cost_queue test_cost_queue.cpp)
2222
target_link_libraries(${PROJECT_NAME}-test-cost_queue ${PROJECT_NAME} gtest_main)
2323

2424
catkin_add_gtest(${PROJECT_NAME}-test-interface_state test_interface_state.cpp)

visualization/motion_planning_tasks/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (CATKIN_ENABLE_TESTING)
1010
target_link_libraries(${PROJECT_NAME}-test-merge-models
1111
motion_planning_tasks_utils gtest_main)
1212

13-
catkin_add_gtest(${PROJECT_NAME}-test-solution-models test_solution_models.cpp)
13+
catkin_add_gmock(${PROJECT_NAME}-test-solution-models test_solution_models.cpp)
1414
target_link_libraries(${PROJECT_NAME}-test-solution-models
1515
motion_planning_tasks_rviz_plugin gtest_main)
1616

0 commit comments

Comments
 (0)