diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2015-10-05 12:06:40 -0700 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2015-10-05 12:06:40 -0700 |
commit | a0f187bec77cee6db1ecc12ff7e39ccabb66c078 (patch) | |
tree | 6d8000cc0b0bc9f660a91722af2434efac6a9659 /linker/tests/linker_memory_allocator_test.cpp | |
parent | 5c50449b0c098cb8191fe3f7791e91a7ec4f7029 (diff) |
Fix linker tests
Change-Id: I4794f2d9dcc5ceb419e1bf9151607a650eb801d9
Diffstat (limited to 'linker/tests/linker_memory_allocator_test.cpp')
-rw-r--r-- | linker/tests/linker_memory_allocator_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/tests/linker_memory_allocator_test.cpp b/linker/tests/linker_memory_allocator_test.cpp index f002a0d50..defd4f3a8 100644 --- a/linker/tests/linker_memory_allocator_test.cpp +++ b/linker/tests/linker_memory_allocator_test.cpp @@ -53,7 +53,7 @@ TEST(linker_memory, test_alloc_0) { LinkerMemoryAllocator allocator; void* ptr = allocator.alloc(0); ASSERT_TRUE(ptr != nullptr); - free(ptr); + allocator.free(ptr); } TEST(linker_memory, test_free_nullptr) { @@ -110,7 +110,7 @@ TEST(linker_memory, test_realloc) { ASSERT_TRUE(memcmp(reallocated_ptr, model, 4000) == 0); - ASSERT_EQ(nullptr, realloc(reallocated_ptr, 0)); + ASSERT_EQ(nullptr, allocator.realloc(reallocated_ptr, 0)); } TEST(linker_memory, test_small_smoke) { |