]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/libcephfs: Polisihing SnapdiffDeletionRecreation case
authorIgor Fedotov <igor.fedotov@croit.io>
Tue, 12 Aug 2025 13:07:43 +0000 (16:07 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Tue, 9 Sep 2025 10:18:06 +0000 (13:18 +0300)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit daf3350621cfafa383cd9deea81b60b775a53093)

src/test/libcephfs/snapdiff.cc

index 1fcdeff9569a976edd8fe621f5ebb4961f7cddbd..f051f5c5108f637962757de50be163617f130429 100644 (file)
@@ -2138,14 +2138,14 @@ TEST(LibCephFS, SnapDiffChangedBlockWithCustomObjectSize)
   ASSERT_EQ(0, test_mount.rmsnap("snap2"));
 }
 
-TEST(LibCephFS, SnapdiffDeletionRecreation) {
-  size_t bulk_count = 1 << 12;
+TEST(LibCephFS, SnapDiffDeletionRecreation) {
+  int bulk_count = 1 << 13;
   TestMount test_mount("/SnapdiffDeletionRecreation");
 
   ASSERT_EQ(0, test_mount.mkdir("bulk"));
   ASSERT_EQ(0, test_mount.mkdir("test"));
 
-  int i, j;
+  int i;
   char path[PATH_MAX];
   for (i = 0; i < bulk_count; i++) {
     snprintf(path, PATH_MAX - 1, "bulk/%d", i);