Commit 26e7bbf
committed
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 <[email protected]>1 parent 04ae517 commit 26e7bbf
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2349 | 2349 | | |
2350 | 2350 | | |
2351 | 2351 | | |
2352 | | - | |
| 2352 | + | |
2353 | 2353 | | |
2354 | 2354 | | |
2355 | 2355 | | |
| |||
2426 | 2426 | | |
2427 | 2427 | | |
2428 | 2428 | | |
2429 | | - | |
2430 | 2429 | | |
| 2430 | + | |
2431 | 2431 | | |
2432 | 2432 | | |
2433 | 2433 | | |
| |||
0 commit comments