|
From: Paul F. <pa...@so...> - 2023-04-01 19:13:43
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=e105ce0d8f69f3784168562823ec9111e92aea95 commit e105ce0d8f69f3784168562823ec9111e92aea95 Author: Paul Floyd <pj...@wa...> Date: Sat Apr 1 21:11:58 2023 +0200 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. Diff: --- 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 <stdlib.h> #include <assert.h> +#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 |