mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 14:13:34 +08:00
Pool test
This commit is contained in:
@@ -20,6 +20,8 @@ TEST(DynamicMemory, Basic)
|
||||
EXPECT_TRUE(poolmgr.addPool(&pool32));
|
||||
EXPECT_FALSE(poolmgr.addPool(&pool128));
|
||||
|
||||
EXPECT_EQ(4 * 2, poolmgr.getNumBlocks());
|
||||
|
||||
const void* ptr1 = poolmgr.allocate(16);
|
||||
EXPECT_TRUE(ptr1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user