summaryrefslogtreecommitdiff
path: root/tests/malloc_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-06-20 15:01:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-06-20 15:01:51 +0000
commit8fef03f6091e80d9da83ffa31e31ad2015fd97c6 (patch)
tree11c86815f3380448c4fc644ac0f530966c35309c /tests/malloc_test.cpp
parent745137c827f6e593ddf1c01783ca41a676ddd172 (diff)
parentd5ab0a5706713240031c419a943e0f317b858e1e (diff)
Merge "Change pvalloc call to valloc in test."
Diffstat (limited to 'tests/malloc_test.cpp')
-rw-r--r--tests/malloc_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/malloc_test.cpp b/tests/malloc_test.cpp
index 983592f0a..f69e5988b 100644
--- a/tests/malloc_test.cpp
+++ b/tests/malloc_test.cpp
@@ -328,7 +328,7 @@ TEST(malloc, pvalloc_overflow) {
TEST(malloc, valloc_std) {
size_t pagesize = sysconf(_SC_PAGESIZE);
- void* ptr = pvalloc(100);
+ void* ptr = valloc(100);
ASSERT_TRUE(ptr != nullptr);
ASSERT_TRUE((reinterpret_cast<uintptr_t>(ptr) & (pagesize-1)) == 0);
free(ptr);