am 748421be
: Merge "Fix linker tests"
* commit '748421beef0ed8625920a27b3753a79c2652b6ef': Fix linker tests
This commit is contained in:
commit
98be6be171
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue