]> 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>
Thu, 4 Jun 2015 20:52:05 +0000 (16:52 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/test_main.cc

index 7937e76c50ef1b654c144bcd8d5ee3af143ee330..c483e51b580e38f5fd51fd27e98301388fbca6de 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>
@@ -28,6 +29,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();