From d0607df42451e050981faf17b15794b334951655 Mon Sep 17 00:00:00 2001 From: Ali Masarwa Date: Thu, 2 Jul 2026 13:04:20 +0300 Subject: [PATCH] rgw/posix: fix for posix versioning test to expect a temporary 0 byte file instead of a dangling link Signed-off-by: Ali Masarwa --- src/test/rgw/test_rgw_posix_driver.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.3