summaryrefslogtreecommitdiffstats
path: root/linker/tests
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-05-14 21:02:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-14 21:02:18 +0000
commit6897b7b8b95beae120fd53e6fd15921d6420bea7 (patch)
tree7d0da1ce701c7dac1a59e1eda1fc2616306e9bbb /linker/tests
parentfbd9dcadc8e25b22c99596462669017b9b1b4a7c (diff)
parent1079406cab09090cc11e26d4ac2f1ba9c4930cdb (diff)
downloadbionic-6897b7b8b95beae120fd53e6fd15921d6420bea7.zip
bionic-6897b7b8b95beae120fd53e6fd15921d6420bea7.tar.gz
bionic-6897b7b8b95beae120fd53e6fd15921d6420bea7.tar.bz2
Merge "Fix for linker allocator"
Diffstat (limited to 'linker/tests')
-rw-r--r--linker/tests/linker_allocator_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/linker/tests/linker_allocator_test.cpp b/linker/tests/linker_allocator_test.cpp
index e3a91c5..0ed8252 100644
--- a/linker/tests/linker_allocator_test.cpp
+++ b/linker/tests/linker_allocator_test.cpp
@@ -96,6 +96,9 @@ TEST(linker_allocator, test_larger) {
ASSERT_TRUE(allocator.alloc() != nullptr);
}
+ test_struct_larger* ptr_to_free = allocator.alloc();
+ ASSERT_TRUE(ptr_to_free != nullptr);
+ allocator.free(ptr1);
}
static void protect_all() {