Message ID | 20191216191742.1035-1-msc@linux.ibm.com |
---|---|
State | New |
Headers | show |
Series | [RFC] malloc: Fix test for malloc_usable_size | expand |
diff --git a/malloc/tst-malloc-usable.c b/malloc/tst-malloc-usable.c index aa572fa06a..767f4ac6ef 100644 --- a/malloc/tst-malloc-usable.c +++ b/malloc/tst-malloc-usable.c @@ -34,9 +34,9 @@ do_test (void) } usable_size = malloc_usable_size (p); - if (usable_size != 7) + if (usable_size < 7) { - printf ("malloc_usable_size: expected 7 but got %zu\n", usable_size); + printf ("malloc_usable_size: expected at least 7 but got %zu\n", usable_size); return 1; }