diff options
author | Christopher Ferris <cferris@google.com> | 2019-06-19 12:03:57 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2019-06-19 12:03:57 -0700 |
commit | d5ab0a5706713240031c419a943e0f317b858e1e (patch) | |
tree | 11c86815f3380448c4fc644ac0f530966c35309c /tests/malloc_test.cpp | |
parent | 745137c827f6e593ddf1c01783ca41a676ddd172 (diff) |
Change pvalloc call to valloc in test.
Found by kostyak, the call should have been valloc, not pvalloc.
Test: Ran unit tests on taimen.
Change-Id: I676b8f3f8051be6768e2ad87b579844560b4f619
Diffstat (limited to 'tests/malloc_test.cpp')
-rw-r--r-- | tests/malloc_test.cpp | 2 |
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); |