Skip to content

Commit

Permalink
tests: librbd should release global data before exit
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 6ab1bb5)
  • Loading branch information
Jason Dillaman committed Jul 17, 2015
1 parent 13f926e commit 5d8d6a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/librbd/test_main.cc
Expand Up @@ -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>
Expand All @@ -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;
}

0 comments on commit 5d8d6a1

Please sign in to comment.