]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: enable lockdep for librbd unit tests
authorJason Dillaman <dillaman@redhat.com>
Mon, 11 May 2015 17:59:49 +0000 (13:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2015 20:36:35 +0000 (16:36 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 45cb9cb5980e90235b8244d0d61ece40bde4784a)

src/test/librbd/test_main.cc

index 4c80fba0c81a4e95e93dd8fb2b4ae97f2298099c..b68d4d28ca9d2a669b48b07bb9b6a2032c28b124 100644 (file)
@@ -4,6 +4,7 @@
 #include "gtest/gtest.h"
 #include "common/ceph_argparse.h"
 #include "common/ceph_crypto.h"
+#include "common/config.h"
 #include "global/global_context.h"
 #include "global/global_init.h"
 #include <vector>
@@ -30,6 +31,7 @@ int main(int argc, char **argv)
   argv_to_vec(argc, (const char **)argv, args);
 
   global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0);
+  g_conf->set_val("lockdep", "true");
   common_init_finish(g_ceph_context);
 
   int r = RUN_ALL_TESTS();