]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rgw: init CephContext in unittest_rgw_cors 69651/head
authorramin.najarbashi <ramin.najarbashi@gmail.com>
Mon, 8 Jun 2026 20:13:23 +0000 (23:43 +0330)
committerramin.najarbashi <ramin.najarbashi@gmail.com>
Mon, 22 Jun 2026 17:02:08 +0000 (20:32 +0330)
commitee5deabb50befd998eae17975bc6941c444311df
tree847b106381b79a3756cdeefe1294025bc2948186
parent30f7e4d67116a5bb0dc6de67bfd4ba11ea8483b2
test/rgw: init CephContext in unittest_rgw_cors

unittest_rgw_cors used GMock::Main without global_init, so dout() in
RGWCORSRule::matches() dereferenced a null g_ceph_context and segfaulted
on the first test. Link unit-main like unittest_rgw_compression.

Assisted-by: Cursor:composer-2.5-fast
Signed-off-by: ramin.najarbashi <ramin.najarbashi@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit c1478653794cd45af4589fa2813a82494df280a3)
src/test/rgw/CMakeLists.txt