Commit c9f90e89 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2088] Deallocate all memory in TestBadDeallocate unit test

parent 59c5e16d
......@@ -84,6 +84,12 @@ TEST(MemorySegmentLocal, TestBadDeallocate) {
// This should throw as the size passed to deallocate() is larger
// than what was allocated.
EXPECT_THROW(segment->deallocate(ptr, 2048), isc::OutOfRange);
// This should not throw
EXPECT_NO_THROW(segment->deallocate(ptr, 1024));
// Now, we have an deallocated everything:
TEST(MemorySegmentLocal, TestNullDeallocate) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment