]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Erase test files at the end.
authorXavier Roche <roche@httrack.com>
Wed, 11 Feb 2015 08:35:14 +0000 (09:35 +0100)
committerXavier Roche <roche@httrack.com>
Wed, 11 Feb 2015 08:35:14 +0000 (09:35 +0100)
src/test/libcephfs/flock.cc

index 774deeb93efffc18dbe3de4f90cd4537ae4c3d35..b1b95464daa4d0a05821d819f725034bb9ca76d0 100644 (file)
@@ -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();
 }