From: Venky Shankar Date: Mon, 3 Oct 2022 09:36:39 +0000 (-0400) Subject: test: cleanup files/dirs for some tests X-Git-Tag: v18.1.0~1003^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0e2c94e669a7864b9c2f142d4315d6642c2f5062;p=ceph.git test: cleanup files/dirs for some tests Otherwise subsequent tests that use the same file/dir name may fail on ceph_mkdir() expecting success. Signed-off-by: Venky Shankar --- diff --git a/src/test/libcephfs/acl.cc b/src/test/libcephfs/acl.cc index a6c4a65963d..e2e9e58c649 100644 --- a/src/test/libcephfs/acl.cc +++ b/src/test/libcephfs/acl.cc @@ -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); }