|
From: Paul F. <pa...@so...> - 2023-03-05 15:25:44
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=afb5867858ec33f20b85b138b2a0b49fc877314a commit afb5867858ec33f20b85b138b2a0b49fc877314a Author: Paul Floyd <pj...@wa...> Date: Sun Mar 5 16:24:44 2023 +0100 Solaris regtest: final iteration for aligned_alloc Diff: --- memcheck/tests/solaris/aligned_alloc.c | 7 ++----- memcheck/tests/solaris/aligned_alloc.vgtest | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/memcheck/tests/solaris/aligned_alloc.c b/memcheck/tests/solaris/aligned_alloc.c index 36456623e9..8136062234 100644 --- a/memcheck/tests/solaris/aligned_alloc.c +++ b/memcheck/tests/solaris/aligned_alloc.c @@ -18,12 +18,10 @@ int main(void) //errno = 0; // align not power of 2 p = aligned_alloc(40, 160); - assert(p == NULL && errno == EINVAL); + assert(p); errno = 0; - // the test below causes a segfault with musl 1.2.2 - // apparently it has been - // too big + // too big aligment if (sizeof(size_t) == 8) { p = aligned_alloc(16, 1UL<<48); @@ -38,4 +36,3 @@ int main(void) } - diff --git a/memcheck/tests/solaris/aligned_alloc.vgtest b/memcheck/tests/solaris/aligned_alloc.vgtest index 07c1c4faf7..a20bccb007 100644 --- a/memcheck/tests/solaris/aligned_alloc.vgtest +++ b/memcheck/tests/solaris/aligned_alloc.vgtest @@ -1 +1,2 @@ prog: aligned_alloc +vgopts: -q |