From: Jason Dillaman Date: Fri, 24 Apr 2015 03:09:45 +0000 (-0400) Subject: tests: librbd should release global data before exit X-Git-Tag: v9.0.1~47^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ab1bb5614a5d257a82cf8ea280eef5c90cf765b;p=ceph.git tests: librbd should release global data before exit Signed-off-by: Jason Dillaman --- diff --git a/src/test/librbd/test_main.cc b/src/test/librbd/test_main.cc index 4b72eb464dec..52c1c46a2262 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; }