From: Paul Floyd Date: Tue, 10 May 2022 18:23:27 +0000 (+0200) Subject: Update FreeBSD memcheck/tests/freebsd/errno_aligned_allocs.c for x86 X-Git-Tag: VALGRIND_3_20_0~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7944c09f5c402facbf50884e96092472295a5bb;p=thirdparty%2Fvalgrind.git Update FreeBSD memcheck/tests/freebsd/errno_aligned_allocs.c for x86 Size to force an ENOMEM on 64bit too big for 32bit. --- diff --git a/memcheck/tests/freebsd/errno_aligned_allocs.c b/memcheck/tests/freebsd/errno_aligned_allocs.c index 50c4959af6..5769cd0541 100644 --- a/memcheck/tests/freebsd/errno_aligned_allocs.c +++ b/memcheck/tests/freebsd/errno_aligned_allocs.c @@ -23,7 +23,7 @@ int main(void) res = posix_memalign((void**)&p, 40, 160); assert(p == NULL && res == EINVAL); // too big - res = posix_memalign((void**)&p, 16, 1UL<<48); + res = posix_memalign((void**)&p, 16, (sizeof(size_t) == 8) ? 1UL<<48 : 1UL<<31); assert(p == NULL && res == ENOMEM); errno = 0;