From: Ali Masarwa Date: Thu, 2 Jul 2026 10:04:20 +0000 (+0300) Subject: rgw/posix: fix for posix versioning test X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0607df42451e050981faf17b15794b334951655;p=ceph.git rgw/posix: fix for posix versioning test to expect a temporary 0 byte file instead of a dangling link Signed-off-by: Ali Masarwa --- diff --git a/src/test/rgw/test_rgw_posix_driver.cc b/src/test/rgw/test_rgw_posix_driver.cc index d83a20b9f43..c6498212790 100644 --- a/src/test/rgw/test_rgw_posix_driver.cc +++ b/src/test/rgw/test_rgw_posix_driver.cc @@ -2189,7 +2189,8 @@ TEST_F(POSIXVerObjectTest, DeleteCurVersion) EXPECT_TRUE(sf::is_regular_file(op2)); EXPECT_TRUE(sf::exists(op3)); EXPECT_TRUE(sf::is_regular_file(op3)); - EXPECT_FALSE(sf::exists(ops)); + // a temporary 0 byte file exists to represent a delete marker + EXPECT_TRUE(sf::exists(ops)); EXPECT_TRUE(sf::is_symlink(ops)); /* Need to find a way to get the correct version */ //EXPECT_EQ(sf::read_symlink(ops), dfname);