Skip to contentSkip to conversation

test/libcephfs: free cmount after tests finishes

PATCH Sage Weil 2 participants 2 messages Nov 3, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Sage Weil

author
#1 lore raw

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

---
 src/test/libcephfs/readdir_r_cb.cc | 4 ++++
 1 file changed, 4 insertions(+)
src/test/libcephfs/readdir_r_cb.cc +4 -0
index 788260b..4a99f10 100644
@@ -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)
#2 lore raw

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