unitregional.c File Reference

Tests the regional special purpose allocator. More...

#include "config.h"
#include "testcode/unitmain.h"
#include "util/log.h"
#include "util/regional.h"

Functions

static void corner_cases (struct regional *r)
 test regional corner cases, zero, one, end of structure
 
static void specific_cases (void)
 test specific cases
 
static void burden_test (size_t max)
 put random stuff in a region and free it
 
static void random_burden (void)
 randomly allocate stuff
 
void regional_test (void)
 unit test for regional allocator functions
 

Detailed Description

Tests the regional special purpose allocator.