diff options
author | Christopher Ferris <cferris@google.com> | 2017-06-15 13:30:44 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-06-15 14:18:08 -0700 |
commit | 3a32d95e288457ad12c3e1ff2034ca0d546704e3 (patch) | |
tree | 04d8ea3325dbd6520cfd552a488a331cefca5614 /tests/malloc_test.cpp | |
parent | a09953e1a8df604d4c2c5f5b3b4c86e5b97694bf (diff) |
Update posix_memalign testing.
Move all tests into stdlib_test.cpp since that's where the definition lives
in bionic.
Add a sweep test and a various size test.
Test: Run new unit tests on glibc and angler.
Change-Id: Ief1301f402bea82ce90240500dd6a01636dbdbae
Diffstat (limited to 'tests/malloc_test.cpp')
-rw-r--r-- | tests/malloc_test.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/malloc_test.cpp b/tests/malloc_test.cpp index a7b9d52e5..ddd78b0c5 100644 --- a/tests/malloc_test.cpp +++ b/tests/malloc_test.cpp @@ -100,16 +100,6 @@ TEST(malloc, memalign_non_power2) { } } -TEST(malloc, posix_memalign_non_power2) { - void* ptr; - ASSERT_EQ(EINVAL, posix_memalign(&ptr, 17, 1024)); -} - -TEST(malloc, posix_memalign_overflow) { - void* ptr; - ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); -} - TEST(malloc, memalign_realloc) { // Memalign and then realloc the pointer a couple of times. for (size_t alignment = 1; alignment <= 4096; alignment <<= 1) { |