diff options
Diffstat (limited to 'core/fxcrt')
-rw-r--r-- | core/fxcrt/fx_memory_unittest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcrt/fx_memory_unittest.cpp b/core/fxcrt/fx_memory_unittest.cpp index 8036855898..8c577835d6 100644 --- a/core/fxcrt/fx_memory_unittest.cpp +++ b/core/fxcrt/fx_memory_unittest.cpp @@ -68,7 +68,9 @@ TEST(fxcrt, FX_TryAllocOverflow) { ptr = FX_Alloc(int, 1); EXPECT_TRUE(ptr); + *ptr = 1492; // Arbitrary sentinel. EXPECT_FALSE(FX_TryRealloc(int, ptr, kOverflowIntAlloc)); + EXPECT_EQ(1492, *ptr); FX_Free(ptr); } #endif |