]> git.ozlabs.org Git - ccan/blobdiff - alloc/test/run.c
Finished uniform allocation code.
[ccan] / alloc / test / run.c
index 68142c7244f43a5fbb85600be5f4c223c092a076..8cfe8b42ba00d3c40a14a533f6d644426341ff9e 100644 (file)
@@ -1,5 +1,5 @@
 #include "alloc/alloc.h"
-#include "tap.h"
+#include "tap/tap.h"
 #include "alloc/alloc.c"
 #include <stdlib.h>
 
@@ -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);