From e105ce0d8f69f3784168562823ec9111e92aea95 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sat, 1 Apr 2023 21:11:58 +0200 Subject: [PATCH] Darwin regtest: another test using aligned_alloc I added this test because I wanted to check the behaviour of aligned_alloc on current macOS, but Valgrind doesn't support it yet. --- memcheck/tests/darwin/aligned_alloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/memcheck/tests/darwin/aligned_alloc.c b/memcheck/tests/darwin/aligned_alloc.c index 1c2fdb78cb..bcbae51fe4 100644 --- a/memcheck/tests/darwin/aligned_alloc.c +++ b/memcheck/tests/darwin/aligned_alloc.c @@ -1,8 +1,11 @@ #include #include +#include "../../../config.h" int main(void) { + // @todo PJF this is a placeholder for 10.15 and later support +#if !defined(VGO_darwin) char* p = NULL; // zero size @@ -14,6 +17,7 @@ int main(void) // align not power of 2 p = aligned_alloc(40, 160); assert(p == NULL); +#endif // @todo PJF this works standalone // but for some reason it doesn't fail in arena_memalign -- 2.47.3