]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/crimson: do not use unit.cc as the driver of unittest_seastar_denc
authorKefu Chai <kchai@redhat.com>
Wed, 5 Sep 2018 11:06:40 +0000 (19:06 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 5 Sep 2018 11:31:49 +0000 (19:31 +0800)
commitb7852ff594a184aa9b0f3a3e01bd1ea2bf9a2a3f
treeb3cd079c21d3cfc0d3debf2df3e0348433146c13
parente2923692014de8c136ffa23137918a15a0ddfd74
test/crimson: do not use unit.cc as the driver of unittest_seastar_denc

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>
src/test/crimson/CMakeLists.txt