mirror of
https://github.com/ceph/ceph
synced 2024-12-27 05:53:20 +00:00
tests: enable lockdep for librbd unit tests
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
c9142fe353
commit
45cb9cb598
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user