]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/unittest_lockdep: skip lockdep test if CEPH_DEBUG_MUTEX is not defined 36050/head
authorKefu Chai <kchai@redhat.com>
Tue, 30 Jun 2020 15:15:44 +0000 (23:15 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 11 Jul 2020 08:54:25 +0000 (10:54 +0200)
this change addresses a regression introduced by
2dc50b5f91476cf10429dbcdd52b00e32f599d5c

Fixes: https://tracker.ceph.com/issues/46267
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit fb74d5443a289c5235210f4c0f1500f2a90cb047)

src/test/common/test_lockdep.cc

index 2e83efa1ebf5c31ced066221bd28453deb031b76..0b47f780c98b0b147e8af44a77f8b05f45ee9722 100644 (file)
@@ -16,7 +16,7 @@ class lockdep : public ::testing::Test
 {
 protected:
   void SetUp() override {
-#ifdef CEPH_DEBUG_MUTEX
+#ifndef CEPH_DEBUG_MUTEX
     GTEST_SKIP() << "WARNING: CEPH_DEBUG_MUTEX is not defined, lockdep will not work";
 #endif
     CephInitParameters params(CEPH_ENTITY_TYPE_CLIENT);