as unit.cc initializes the CephContext and all of Ceph's infratructure,
which is not necessary for the denc test. also, seastar's builtin allocator
only pre-allocates 32 << 20 bytes. it's enough for the denc test, but
not necessarily enough for create CephContext and its friends. an option is
to use seastar's app template to initialize the memory allocator properly.
another option is to avoid initializing CephContext in this test.
the latter is simpler.
Signed-off-by: Kefu Chai <kchai@redhat.com>
target_link_libraries(unittest_seastar_buffer ceph-common crimson)
add_executable(unittest_seastar_denc
- test_denc.cc
- $<TARGET_OBJECTS:unit-main>)
+ test_denc.cc)
add_ceph_unittest(unittest_seastar_denc)
-target_link_libraries(unittest_seastar_denc ceph-common global crimson)
+target_link_libraries(unittest_seastar_denc crimson GTest::Main)
add_executable(unittest_seastar_messenger test_messenger.cc)
add_ceph_unittest(unittest_seastar_messenger)