X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=alloc%2Ftest%2Frun.c;h=8cfe8b42ba00d3c40a14a533f6d644426341ff9e;hb=cf808b83eeed556181ca481b70a23d04df51237e;hp=68142c7244f43a5fbb85600be5f4c223c092a076;hpb=4f5988a8db7562a54be9125fb67895045a0f5528;p=ccan diff --git a/alloc/test/run.c b/alloc/test/run.c index 68142c72..8cfe8b42 100644 --- a/alloc/test/run.c +++ b/alloc/test/run.c @@ -1,5 +1,5 @@ #include "alloc/alloc.h" -#include "tap.h" +#include "tap/tap.h" #include "alloc/alloc.c" #include @@ -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);