commit | 8fef03f6091e80d9da83ffa31e31ad2015fd97c6 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Thu Jun 20 15:01:51 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jun 20 15:01:51 2019 +0000 |
tree | 11c86815f3380448c4fc644ac0f530966c35309c | |
parent | 745137c827f6e593ddf1c01783ca41a676ddd172 [diff] | |
parent | d5ab0a5706713240031c419a943e0f317b858e1e [diff] |
Merge "Change pvalloc call to valloc in test."
diff --git a/tests/malloc_test.cpp b/tests/malloc_test.cpp index 983592f..f69e598 100644 --- a/tests/malloc_test.cpp +++ b/tests/malloc_test.cpp
@@ -328,7 +328,7 @@ 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);