mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Linux musl: corrections for aligned_alloc test
This commit is contained in:
parent
15fdfa8464
commit
e99cd3c6a3
@ -38,6 +38,7 @@ EXTRA_DIST = \
|
||||
memalign.vgtest memalign.stderr.exp
|
||||
|
||||
check_PROGRAMS = \
|
||||
aligned_alloc \
|
||||
brk \
|
||||
capget \
|
||||
check_preadv2_pwritev2 \
|
||||
|
||||
@ -11,8 +11,8 @@ int main(void)
|
||||
|
||||
// zero size
|
||||
p = aligned_alloc(0, 8);
|
||||
assert(p == NULL && errno == EINVAL);
|
||||
errno = 0;
|
||||
assert(p && ((size_t)p % 8U == 0U));
|
||||
free(p);
|
||||
// non multiple of alignment passes on FreeBSD
|
||||
p = aligned_alloc(8, 25);
|
||||
assert(p && ((size_t)p % 8U == 0U));
|
||||
@ -20,7 +20,7 @@ int main(void)
|
||||
//errno = 0;
|
||||
// align not power of 2
|
||||
p = aligned_alloc(40, 160);
|
||||
assert(p == NULL && errno == EINVAL);
|
||||
assert(p == NULL);
|
||||
errno = 0;
|
||||
// the test below causes a segfault with musl 1.2.2
|
||||
// apparently it has been fixed in 1.2.3
|
||||
|
||||
@ -1 +1,2 @@
|
||||
prog: aligned_alloc
|
||||
vgopts: -q
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user