Re: [PATCH] test/libcephfs: free cmount after tests finishes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

On Sun, 3 Nov 2013, Xing Lin wrote:

> unmount and release cmount at the end of tests
> 
> Signed-off-by: Xing Lin <xinglin@xxxxxxxxxxx>
> ---
>  src/test/libcephfs/readdir_r_cb.cc | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/test/libcephfs/readdir_r_cb.cc b/src/test/libcephfs/readdir_r_cb.cc
> index 788260b..4a99f10 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));
>  }
> -- 
> 1.8.3.4 (Apple Git-47)
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux