test/libcephfs: free cmount after tests finishes
A message that is not in the archive (sent off-list or not yet received): [email protected]
Applied this one too!
BTW, an easier workflow than sending patches to the list is to accumulate a batch of fixes in a branch and submit a pull request via github (at least if you're already a github user). Whichever works well for you.
Thanks!
s
Quoted 24 lines · Xing Lin
unmount and release cmount at the end of tests
Signed-off-by Xing Lin <[email protected]>--- src/test/libcephfs/readdir_r_cb.cc | 4 ++++ 1 file changed, 4 insertions(+)src/test/libcephfs/readdir_r_cb.cc +4
-0@@ -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)); }Signature · 1 line
1.8.3.4 (Apple Git-47)
Hi Sage,
Thanks for applying these two patches. I will try to accumulate more fixes and submit pull requests via github later.
Thanks,
Xing
Quoted 8 lines · Sage Weil
Applied this one too!
BTW, an easier workflow than sending patches to the list is to accumulate a batch of fixes in a branch and submit a pull request via github (at least if you're already a github user). Whichever works well for you.
Thanks!
s