Commit e6737e85 authored by Rusty Russell's avatar Rusty Russell

No fair asking allocator to align greater than pool.

parent 03a2acdd
......@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
plan_tests(139);
/* FIXME: Needs to be page aligned for now. */
posix_memalign(&mem, getpagesize(), POOL_SIZE);
posix_memalign(&mem, 1 << POOL_ORD, POOL_SIZE);
/* Small pool, all allocs fail, even 0-length. */
alloc_init(mem, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment