From 45cb9cb5980e90235b8244d0d61ece40bde4784a Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 11 May 2015 13:59:49 -0400 Subject: [PATCH] tests: enable lockdep for librbd unit tests Signed-off-by: Jason Dillaman --- src/test/librbd/test_main.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/librbd/test_main.cc b/src/test/librbd/test_main.cc index 7937e76c50e..c483e51b580 100644 --- a/src/test/librbd/test_main.cc +++ b/src/test/librbd/test_main.cc @@ -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 @@ -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();