From 6ab1bb5614a5d257a82cf8ea280eef5c90cf765b Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 23 Apr 2015 23:09:45 -0400 Subject: [PATCH] tests: librbd should release global data before exit Signed-off-by: Jason Dillaman --- src/test/librbd/test_main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/librbd/test_main.cc b/src/test/librbd/test_main.cc index 4b72eb464dece..52c1c46a22629 100644 --- a/src/test/librbd/test_main.cc +++ b/src/test/librbd/test_main.cc @@ -3,6 +3,7 @@ #include "gtest/gtest.h" #include "common/ceph_argparse.h" +#include "common/ceph_crypto.h" #include "global/global_context.h" #include "global/global_init.h" #include @@ -25,5 +26,8 @@ int main(int argc, char **argv) global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0); common_init_finish(g_ceph_context); - return RUN_ALL_TESTS(); + int r = RUN_ALL_TESTS(); + g_ceph_context->put(); + ceph::crypto::shutdown(); + return r; } -- 2.39.5