diff options
Diffstat (limited to 'base/allocator/allocator_unittests.cc')
-rw-r--r-- | base/allocator/allocator_unittests.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/allocator/allocator_unittests.cc b/base/allocator/allocator_unittests.cc index fdda081..919cfab 100644 --- a/base/allocator/allocator_unittests.cc +++ b/base/allocator/allocator_unittests.cc @@ -402,7 +402,7 @@ TEST(Allocators, Realloc1) { // The larger the start-size, the larger the non-reallocing delta. for (int d = 0; d < s*2; ++d) { void* new_p = realloc(p, start_sizes[s] + deltas[d]); - CHECK_EQ(p, new_p); // realloc should not allocate new memory + CHECK(p == new_p); // realloc should not allocate new memory } // Test again, but this time reallocing smaller first. for (int d = 0; d < s*2; ++d) { @@ -487,3 +487,4 @@ int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } + |