summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaan <daan@effp.org>2022-11-01 16:34:24 -0700
committerdaan <daan@effp.org>2022-11-01 16:34:24 -0700
commitb3b479490edbb820e7bc946c5c3e58b4cc92b06e (patch)
treead7131be3ddcfb5e2d9336cb1e9f431e60b0cefa
parentcb3b73ba361fdd58601aa36eb3ed98eccff0fa1f (diff)
parent2d3f0e5b7a97df2d054da18c0077699564db52c6 (diff)
Merge branch 'dev' into dev-slice
-rw-r--r--test/test-api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-api.c b/test/test-api.c
index 1d427c0..3c2ef7e 100644
--- a/test/test-api.c
+++ b/test/test-api.c
@@ -138,7 +138,11 @@ int main(void) {
result = ok;
};
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") {
bool ok = true;