mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
fix align5 test
This commit is contained in:
parent
ad1da7cfc8
commit
2d3f0e5b7a
1 changed files with 5 additions and 1 deletions
|
@ -138,7 +138,11 @@ int main(void) {
|
||||||
result = ok;
|
result = ok;
|
||||||
};
|
};
|
||||||
CHECK_BODY("malloc-aligned5") {
|
CHECK_BODY("malloc-aligned5") {
|
||||||
void* p = mi_malloc_aligned(4097,4096); size_t usable = mi_usable_size(p); result = usable >= 4097 && usable < 10000; mi_free(p);
|
void* p = mi_malloc_aligned(4097,4096);
|
||||||
|
size_t usable = mi_usable_size(p);
|
||||||
|
result = (usable >= 4097 && usable < 16000);
|
||||||
|
printf("malloc_aligned5: usable size: %zi\n", usable);
|
||||||
|
mi_free(p);
|
||||||
};
|
};
|
||||||
CHECK_BODY("malloc-aligned6") {
|
CHECK_BODY("malloc-aligned6") {
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue