From: Paul Floyd Date: Sun, 5 Mar 2023 16:22:59 +0000 (+0100) Subject: Darwin regtest: again, forgot to delete errno X-Git-Tag: VALGRIND_3_21_0~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ca91d66997653c56468be25b416b81a81f5476;p=thirdparty%2Fvalgrind.git Darwin regtest: again, forgot to delete errno Setting errno on Darwin not supported on Valgrind. --- diff --git a/memcheck/tests/darwin/aligned_alloc.c b/memcheck/tests/darwin/aligned_alloc.c index 8d38f593bf..f8d580538f 100644 --- a/memcheck/tests/darwin/aligned_alloc.c +++ b/memcheck/tests/darwin/aligned_alloc.c @@ -9,15 +9,12 @@ int main(void) // zero size p = aligned_alloc(0, 8); assert(p == NULL); - errno = 0; // non multiple of alignment fails on Darwin p = aligned_alloc(8, 25); assert(p == NULL); - errno = 0; // align not power of 2 p = aligned_alloc(40, 160); assert(p == NULL); - errno = 0; // @todo PJF this works standalone // but for some reason it doesn't fail in arena_memalign