summaryrefslogtreecommitdiff
path: root/tests/malloc_test.cpp
diff options
context:
space:
mode:
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);