summaryrefslogtreecommitdiffstats
path: root/linker/tests
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-05-14 12:52:57 -0700
committerDmitriy Ivanov <dimitry@google.com>2014-05-14 12:52:57 -0700
commit1079406cab09090cc11e26d4ac2f1ba9c4930cdb (patch)
tree1990287fea9a5cc28410dfa1bc3ff3741ad1cfc2 /linker/tests
parentc6b5834ceb3df72608a8fe3526a2db337e504512 (diff)
downloadbionic-1079406cab09090cc11e26d4ac2f1ba9c4930cdb.zip
bionic-1079406cab09090cc11e26d4ac2f1ba9c4930cdb.tar.gz
bionic-1079406cab09090cc11e26d4ac2f1ba9c4930cdb.tar.bz2
Fix for linker allocator
Change-Id: I18a3f1a8515657f0deb69266184fb516a27f90e8
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() {