unittest-transaction-manager, unittest-omap-manager,
unittest-btree-lba-manager, and unittest-seastore all include
gtest_seastar.cc but were not explicitly linking against crimson::gtest.
This worked previously because gtest symbols were pulled in transitively,
but with gcc-toolset-13 and LTO the transitive dependency is no longer
satisfied, producing undefined reference errors for testing::Message,
testing::Test, testing::AssertionSuccess, etc.
Fix by linking these tests against crimson::gtest
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
--memory 256M --smp 1)
target_link_libraries(
unittest-transaction-manager
+ crimson::gtest
${CMAKE_DL_LIBS}
crimson-seastore)
avoid_asan_uar_slowdown(unittest-transaction-manager)
--memory 256M --smp 1)
target_link_libraries(
unittest-omap-manager
+ crimson::gtest
${CMAKE_DL_LIBS}
crimson-seastore)
avoid_asan_uar_slowdown(unittest-omap-manager)
--memory 256M --smp 1)
target_link_libraries(
unittest-btree-lba-manager
+ crimson::gtest
${CMAKE_DL_LIBS}
crimson-seastore)
--memory 256M --smp 1)
target_link_libraries(
unittest-seastore
+ crimson::gtest
${CMAKE_DL_LIBS}
crimson-seastore
crimson-common)