]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't test `size[i] % align[i] == 0` case on FreeBSD
authorngie <ngie@FreeBSD.org>
Thu, 25 Aug 2016 19:17:16 +0000 (19:17 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 25 Aug 2016 19:17:16 +0000 (19:17 +0000)
commit506f6f6f7b67ae88cda0dd22ac7e789941eeefaa
tree75e94cb42aa3a1ec2cbe2d25f1e051d09f8325e4
parent1ec2e8cd091243f34bf4bfafc0cd4a28687b01c4
Don't test `size[i] % align[i] == 0` case on FreeBSD

Per jemalloc(3)/aligned_alloc(3), the behavior is undefined if the size
isn't an integral multiple of the alignment. Thus, this is a NetBSD-specific
test.

Sponsored by: EMC / Isilon Storage Division
contrib/netbsd-tests/lib/libc/stdlib/t_posix_memalign.c