Fix linker tests

Change-Id: I4794f2d9dcc5ceb419e1bf9151607a650eb801d9
This commit is contained in:
Dmitriy Ivanov 2015-10-05 12:06:40 -07:00
parent 5c50449b0c
commit a0f187bec7

View File

@ -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) {