]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/libcephfs: free cmount after tests finishes
authorXing Lin <xinglin@cs.utah.edu>
Sun, 3 Nov 2013 06:05:58 +0000 (00:05 -0600)
committerSage Weil <sage@inktank.com>
Sun, 3 Nov 2013 06:15:28 +0000 (23:15 -0700)
unmount and release cmount at the end of tests

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Reviewed-by: Sage Weil <sage@inktank.com>
src/test/libcephfs/readdir_r_cb.cc

index 788260b3e0ffdeec23ad40275dd48d0a9d3e4951..4a99f102da221913ab5e11293589826ec6d34b8a 100644 (file)
@@ -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));
 }