]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librados/aio_cxx: Fix potential mutex destruction failure on PoolEIOFlag
authorNitzan Mordechai <nmordech@redhat.com>
Sun, 22 Jun 2025 13:43:55 +0000 (13:43 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 29 Jun 2025 06:30:00 +0000 (06:30 +0000)
commit5588a70c75a033b35cd4c2d88ae036ab350913a7
tree1cb50ad3620d4c1adf69305f1807b07ec9f57c2b
parentdb4b62b4622b44f4bedc757bdf401dff6aa0f880
test/librados/aio_cxx: Fix potential mutex destruction failure on PoolEIOFlag

GTEST_SKIP() does not return and causes early test exit, which
skips any following cleanup logic.
In this case, the test skipped before releasing my_lock, causing
pthread_mutex_destroy() to fail with EBUSY and trigger a ceph_assert()
in the mutex debug wrapper.
Fix by explicitly unlocking the mutex before calling GTEST_SKIP().

Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
(cherry picked from commit 26e7bbf68142419d9e2991099e42853c1a7339b4)
src/test/librados/aio_cxx.cc