/* * BIRD -- Allocator Tests * * (c) 2023 CZ.NIC z.s.p.o. * (c) 2023 Maria Matejka * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "test/birdtest.h" #include "test/bt-utils.h" #include "lib/resource.h" #include #include #define ALLOC_AND_TREE_LIMIT (1 << 14) static void * alloc_and_free_main(void *data UNUSED) { #define BLOCK_SIZE 32 void *block[BLOCK_SIZE]; for (int i=0; i