From: Xavier Roche Date: Wed, 11 Feb 2015 08:35:14 +0000 (+0100) Subject: Erase test files at the end. X-Git-Tag: v9.0.0~187^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f41c640e93f64d329c1884e9d6dcc65c3067d7ad;p=ceph.git Erase test files at the end. --- diff --git a/src/test/libcephfs/flock.cc b/src/test/libcephfs/flock.cc index 774deeb93eff..b1b95464daa4 100644 --- a/src/test/libcephfs/flock.cc +++ b/src/test/libcephfs/flock.cc @@ -115,6 +115,7 @@ TEST(LibCephFS, BasicLocking) { ASSERT_EQ(0, ceph_flock(cmount, fd, LOCK_UN, 42)); ASSERT_EQ(0, ceph_close(cmount, fd)); + ASSERT_EQ(0, ceph_unlink(cmount, c_file)); CLEANUP_CEPH(); } @@ -273,6 +274,7 @@ TEST(LibCephFS, ConcurrentLocking) { ASSERT_EQ(0, sem_destroy(&s.sem)); ASSERT_EQ(0, sem_destroy(&s.semReply)); ASSERT_EQ(0, ceph_close(cmount, fd)); + ASSERT_EQ(0, ceph_unlink(cmount, c_file)); CLEANUP_CEPH(); } @@ -361,6 +363,7 @@ TEST(LibCephFS, ThreesomeLocking) { ASSERT_EQ(0, sem_destroy(&s.sem)); ASSERT_EQ(0, sem_destroy(&s.semReply)); ASSERT_EQ(0, ceph_close(cmount, fd)); + ASSERT_EQ(0, ceph_unlink(cmount, c_file)); CLEANUP_CEPH(); } @@ -514,6 +517,7 @@ TEST(LibCephFS, InterProcessLocking) { ASSERT_EQ(0, sem_destroy(&s.semReply)); ASSERT_EQ(0, munmap(shs, sizeof(*shs))); ASSERT_EQ(0, ceph_close(cmount, fd)); + ASSERT_EQ(0, ceph_unlink(cmount, c_file)); CLEANUP_CEPH(); } @@ -627,5 +631,6 @@ TEST(LibCephFS, ThreesomeInterProcessLocking) { ASSERT_EQ(0, sem_destroy(&s.semReply)); ASSERT_EQ(0, munmap(shs, sizeof(*shs))); ASSERT_EQ(0, ceph_close(cmount, fd)); + ASSERT_EQ(0, ceph_unlink(cmount, c_file)); CLEANUP_CEPH(); }