mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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:
parent
1f1abc9ec3
commit
d7944c09f5
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user