From: Xing Lin Date: Sun, 3 Nov 2013 06:05:58 +0000 (-0600) Subject: test/libcephfs: free cmount after tests finishes X-Git-Tag: v0.73~38 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=96f4607bb09da02fdb2e29164a29e95bb7917176;p=ceph.git test/libcephfs: free cmount after tests finishes unmount and release cmount at the end of tests Signed-off-by: Xing Lin Reviewed-by: Sage Weil --- diff --git a/src/test/libcephfs/readdir_r_cb.cc b/src/test/libcephfs/readdir_r_cb.cc index 788260b3e0ff..4a99f102da22 100644 --- a/src/test/libcephfs/readdir_r_cb.cc +++ b/src/test/libcephfs/readdir_r_cb.cc @@ -54,4 +54,8 @@ TEST(LibCephFS, ReaddirRCB) { ASSERT_LE(0, ceph_opendir(cmount, c_dir, &dirp)); ASSERT_EQ(5, ceph_getdnames(cmount, dirp, buf, 6)); ASSERT_EQ(4, ceph_getdnames(cmount, dirp, buf, 6)); + + // free cmount after finishing testing + ASSERT_EQ(0, ceph_unmount(cmount)); + ASSERT_EQ(0, ceph_release(cmount)); }