From: Jason Dillaman Date: Mon, 11 May 2015 17:59:49 +0000 (-0400) Subject: tests: enable lockdep for librbd unit tests X-Git-Tag: v9.0.2~46^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=45cb9cb5980e90235b8244d0d61ece40bde4784a;p=ceph.git tests: enable lockdep for librbd unit tests Signed-off-by: Jason Dillaman --- diff --git a/src/test/librbd/test_main.cc b/src/test/librbd/test_main.cc index 7937e76c50ef..c483e51b580e 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();