Update FreeBSD memcheck/tests/freebsd/errno_aligned_allocs.c for x86

Size to force an ENOMEM on 64bit too big for 32bit.
This commit is contained in:
Paul Floyd 2022-05-10 20:23:27 +02:00
parent 1f1abc9ec3
commit d7944c09f5

View File

@ -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;