mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 17:23:33 +08:00
Allocator fixes
This commit is contained in:
@@ -100,6 +100,8 @@ TEST(DynamicMemory, LimitedPoolAllocator)
|
||||
uavcan::PoolAllocator<128, 32> pool32;
|
||||
uavcan::LimitedPoolAllocator lim(pool32, 2);
|
||||
|
||||
EXPECT_EQ(2, lim.getNumBlocks());
|
||||
|
||||
const void* ptr1 = lim.allocate(1);
|
||||
const void* ptr2 = lim.allocate(1);
|
||||
const void* ptr3 = lim.allocate(1);
|
||||
|
||||
Reference in New Issue
Block a user