]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/posix: fix for posix versioning test 69638/head
authorAli Masarwa <amasarwa@redhat.com>
Thu, 2 Jul 2026 10:04:20 +0000 (13:04 +0300)
committerAli Masarwa <amasarwa@redhat.com>
Thu, 2 Jul 2026 10:04:30 +0000 (13:04 +0300)
to expect a temporary 0 byte file instead of a dangling link

Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
src/test/rgw/test_rgw_posix_driver.cc

index d83a20b9f4309e27e9e2ca54562ea554cac06eda..c6498212790c8cd679138646190927aa43262c09 100644 (file)
@@ -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);