]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/librados/io_cxx: append buf to bl in CrcZeroWrite
authorSamuel Just <sjust@redhat.com>
Fri, 31 May 2024 18:38:17 +0000 (11:38 -0700)
committerNitzan Mordechai <nmordech@redhat.com>
Thu, 27 Jun 2024 11:07:56 +0000 (11:07 +0000)
This seems to be what was intended.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 67be49217fe1757202dc2626a661f56ae96877b0)

src/test/librados/io_cxx.cc

index eda2d0c3af6fd133ead0c715af3119d729eee53c..39e10a6298543380ea1056105551717c8e211bd9 100644 (file)
@@ -850,6 +850,7 @@ TEST_F(LibRadosIoECPP, CrcZeroWrite) {
   char buf[128];
   memset(buf, 0xcc, sizeof(buf));
   bufferlist bl;
+  bl.append(buf, sizeof(buf));
 
   ASSERT_EQ(0, ioctx.write("foo", bl, 0, 0));
   ASSERT_EQ(0, ioctx.write("foo", bl, 0, sizeof(buf)));