X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Funit%2Flibringbuffer%2Fshm.c;h=8b78da254672781b2dfcb1f689376c162230b346;hb=HEAD;hp=60b8e6fef866a65879fb27b113189637e3458356;hpb=4b4a133740c87d9a851023a7aeb06b78d887e51b;p=lttng-ust.git diff --git a/tests/unit/libringbuffer/shm.c b/tests/unit/libringbuffer/shm.c index 60b8e6fe..8b78da25 100644 --- a/tests/unit/libringbuffer/shm.c +++ b/tests/unit/libringbuffer/shm.c @@ -12,8 +12,8 @@ #include #include -#include "libringbuffer/shm.h" -#include "ust-compat.h" +#include "common/ringbuffer/shm.h" +#include "common/align.h" #include "tap.h" @@ -34,12 +34,12 @@ int main(void) ok(shmfd > 0, "Open a POSIX shm fd"); /* Create a dummy shm object table to test the allocation function */ - table = shm_object_table_create(1); + table = shm_object_table_create(1, false); ok(table, "Create a shm object table"); assert(table); /* This function sets the initial size of the shm with ftruncate and zeros it */ - shmobj = shm_object_table_alloc(table, shmsize, SHM_OBJECT_SHM, shmfd, -1); + shmobj = shm_object_table_alloc(table, shmsize, SHM_OBJECT_SHM, shmfd, -1, false); ok(shmobj, "Allocate the shm object table"); assert(shmobj);