]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: librbd should release global data before exit
authorJason Dillaman <dillaman@redhat.com>
Fri, 24 Apr 2015 03:09:45 +0000 (23:09 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 28 Apr 2015 15:00:39 +0000 (11:00 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/test_main.cc

index 4b72eb464dece16e07870db010b9549c3b484c38..52c1c46a22629712984b6e01edd716b842aac03a 100644 (file)
@@ -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 <vector>
@@ -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;
 }