]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rgw: link lua test against unit-main for g_ceph_context 63434/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 22 May 2025 13:26:23 +0000 (09:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 22 May 2025 13:26:26 +0000 (09:26 -0400)
commitf2b292f522fdd612441c3618266f97693baec908
tree8ca4f5b6e19078bfc777bea40a5e70fc2e9a2ada
parent0f6c96ec942d3502594501cde7eadf29a5546af4
test/rgw: link lua test against unit-main for g_ceph_context

test_rgw_lua.cc was allocating a CephContext without initializing it, so
log statements from the tests/rgw code weren't actually being logged

the unit-main target links in the main() function from test/unit.cc
which initializes the CephContext via global_init(). use the resulting
global g_ceph_context instead of managing a separate one

Related-to: https://tracker.ceph.com/issues/70673
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/test/rgw/CMakeLists.txt
src/test/rgw/test_rgw_lua.cc