|
From: Paul F. <pa...@so...> - 2023-03-05 16:23:48
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=b2ca91d66997653c56468be25b416b81a81f5476 commit b2ca91d66997653c56468be25b416b81a81f5476 Author: Paul Floyd <pj...@wa...> Date: Sun Mar 5 17:22:59 2023 +0100 Darwin regtest: again, forgot to delete errno Setting errno on Darwin not supported on Valgrind. Diff: --- memcheck/tests/darwin/aligned_alloc.c | 3 --- 1 file changed, 3 deletions(-) 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 |