unittest_fault_injector includes death tests for InjectAbort coverage,
and death tests don't play nicely with threads. the unit-main target
provides a main() function that initializes a g_ceph_context and starts
its associated threads. omit unit-main to prevent the log thread from
starting
Fixes: https://tracker.ceph.com/issues/71600
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
bac78660c0338b33d092ab571f9347e6605aa0c4)
target_link_libraries(unittest_option ceph-common GTest::Main)
add_ceph_unittest(unittest_option)
-add_executable(unittest_fault_injector test_fault_injector.cc
- $<TARGET_OBJECTS:unit-main>)
-target_link_libraries(unittest_fault_injector global)
+add_executable(unittest_fault_injector test_fault_injector.cc)
+target_link_libraries(unittest_fault_injector global GTest::Main)
add_ceph_unittest(unittest_fault_injector)
add_executable(unittest_blocked_completion test_blocked_completion.cc)