]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/unittest_lockdep: skip lockdep test if CEPH_DEBUG_MUTEX is not defined 35856/head
authorKefu Chai <kchai@redhat.com>
Tue, 30 Jun 2020 15:15:44 +0000 (23:15 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 30 Jun 2020 15:16:07 +0000 (23:16 +0800)
this change addresses a regression introduced by
2dc50b5f91476cf10429dbcdd52b00e32f599d5c

Fixes: https://tracker.ceph.com/issues/46267
Signed-off-by: Kefu Chai <kchai@redhat.com>
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);