]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: cleanup files/dirs for some tests
authorVenky Shankar <vshankar@redhat.com>
Mon, 3 Oct 2022 09:36:39 +0000 (05:36 -0400)
committerVenky Shankar <vshankar@redhat.com>
Tue, 11 Oct 2022 08:01:05 +0000 (13:31 +0530)
Otherwise subsequent tests that use the same file/dir name may fail
on ceph_mkdir() expecting success.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/test/libcephfs/acl.cc

index a6c4a65963d92778645610b7d264a9bdde1885bb..e2e9e58c649571d8341594d5687e233dbaf55eda 100644 (file)
@@ -280,6 +280,9 @@ TEST(ACL, DefaultACL) {
 
   free(acl1_buf);
   free(acl2_buf);
+  ASSERT_EQ(ceph_unlink(cmount, test_file1), 0);
+  ASSERT_EQ(ceph_rmdir(cmount, test_dir2), 0);
+  ASSERT_EQ(ceph_rmdir(cmount, test_dir1), 0);
   ceph_close(cmount, fd);
   ceph_shutdown(cmount);
 }