#include "alloc/alloc.c"
#include <stdlib.h>
#include <stdbool.h>
+#include <err.h>
#define POOL_ORD 16
#define POOL_SIZE (1 << POOL_ORD)
plan_tests(5);
/* FIXME: Needs to be page aligned for now. */
- posix_memalign(&mem, 1 << POOL_ORD, POOL_SIZE);
+ if (posix_memalign(&mem, 1 << POOL_ORD, POOL_SIZE) != 0)
+ errx(1, "Failed allocating aligned memory");
alloc_init(mem, POOL_SIZE);