Skip to content

Commit 6b07e75

Browse files
committed
test/bufferlist: verify vebuild_aligned_size_and_memory makes contiguous
buferlist when explicitly requested. Signed-off-by: Igor Fedotov <[email protected]>
1 parent 3b4ea0f commit 6b07e75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/bufferlist.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,6 +1867,9 @@ TEST(BufferList, rebuild_aligned_size_and_memory) {
18671867
EXPECT_TRUE(bl.is_n_align_sized(BUFFER_SIZE));
18681868
EXPECT_EQ(3U, bl.get_num_buffers());
18691869

1870+
bl.rebuild_aligned_size_and_memory(BUFFER_SIZE, SIMD_ALIGN, 1);
1871+
EXPECT_EQ(1U, bl.get_num_buffers());
1872+
18701873
{
18711874
/* bug replicator, to test rebuild_aligned_size_and_memory() in the
18721875
* scenario where the first bptr is both size and memory aligned and

0 commit comments

Comments
 (0)