]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/bufferlist: assert the rebuild in rebuild_aligned_size_and_memory() actually... 44675/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 19 Jan 2022 21:56:05 +0000 (21:56 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 19 Jan 2022 22:06:21 +0000 (22:06 +0000)
commit2de5f17647437d8f67adfe79becbb0e280f7f26f
tree20479007f13f27413df4000bcf071b0d496a8ab3
parent0ccd1f69be073987972f01e5e99fc1c19234034d
test/bufferlist: assert the rebuild in rebuild_aligned_size_and_memory() actually happens.

For the investigation of failures like the following one:

```
[ RUN      ] BufferList.rebuild_aligned_size_and_memory
../src/test/bufferlist.cc:1865: Failure
Expected equality of these values:
  bl.get_num_buffers()
    Which is: 2
  1
[  FAILED  ] BufferList.rebuild_aligned_size_and_memory (0 ms)
```

The test case assumes the rebuild before the failed clause **always**
happens while `bufferlist::rebuild_aligned_size_and_memory()` skips it
if buffers are already aligned.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/test/bufferlist.cc