Browse Source

No fair asking allocator to align greater than pool.

Rusty Russell 18 years ago
parent
commit
e6737e85a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      alloc/test/run.c

+ 1 - 1
alloc/test/run.c

@@ -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);