From: Paul Floyd Date: Sun, 5 Mar 2023 15:24:44 +0000 (+0100) Subject: Solaris regtest: final iteration for aligned_alloc X-Git-Tag: VALGRIND_3_21_0~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb5867858ec33f20b85b138b2a0b49fc877314a;p=thirdparty%2Fvalgrind.git Solaris regtest: final iteration for aligned_alloc --- 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