diff options
author | Enrico Loparco (eloparco) <eloparco@cisco.com> | 2021-03-30 18:08:34 +0200 |
---|---|---|
committer | Enrico Loparco (eloparco) <eloparco@cisco.com> | 2021-03-31 10:23:35 +0200 |
commit | 2fa1eaf5aecbd862e9eba897d989d2fd7adba71e (patch) | |
tree | 95237567664cdc8fc7cf8eb3fac9ad27eb11457c /hicn-light/src/hicn/base/test/test-pool.cc | |
parent | f309c4aab4475f5511d00bc236e1f78a457693ed (diff) |
[HICN-558, HICN-556] Fix bugs in pool and bitmap
Fix element size in pool. Solve realloc problem in bitmap.
Use the object size (not its pointer) when adding an object to the pool.
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Change-Id: Id338e403b09bb22f3a326d2cb28cf09300c0de33
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/base/test/test-pool.cc')
-rw-r--r-- | hicn-light/src/hicn/base/test/test-pool.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/base/test/test-pool.cc b/hicn-light/src/hicn/base/test/test-pool.cc index f87ff65dd..e5df191ea 100644 --- a/hicn-light/src/hicn/base/test/test-pool.cc +++ b/hicn-light/src/hicn/base/test/test-pool.cc @@ -155,8 +155,6 @@ TEST_F(PoolTest, PoolPut) pool_free(pool); } -// TODO: this test fails, there is a problem when N = n*64 -// (i.e. when a bitmap reallocation occurs) TEST_F(PoolTest, PoolGetForceBitmapRealloc) { const int N = 64; |