mem_test.c File Reference

#include <config.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <atf-c.h>
#include "isctest.h"
#include <isc/mem.h>
#include <isc/result.h>

Go to the source code of this file.

Functions

static void * default_memalloc (void *arg, size_t size)
static void default_memfree (void *arg, void *ptr)
 ATF_TC (isc_mem_total)
 ATF_TC_HEAD (isc_mem_total, tc)
 ATF_TC_BODY (isc_mem_total, tc)
 ATF_TC (isc_mem_inuse)
 ATF_TC_HEAD (isc_mem_inuse, tc)
 ATF_TC_BODY (isc_mem_inuse, tc)
 ATF_TP_ADD_TCS (tp)


Function Documentation

static void* default_memalloc ( void *  arg,
size_t  size 
) [static]

Definition at line 30 of file mem_test.c.

References UNUSED.

static void default_memfree ( void *  arg,
void *  ptr 
) [static]

Definition at line 38 of file mem_test.c.

References free(), and UNUSED.

ATF_TC ( isc_mem_total   ) 

ATF_TC_HEAD ( isc_mem_total  ,
tc   
)

Definition at line 44 of file mem_test.c.

ATF_TC_BODY ( isc_mem_total  ,
tc   
)

Definition at line 48 of file mem_test.c.

References default_memalloc(), default_memfree(), isc_mem_allocate, isc_mem_createx2(), isc_mem_destroy(), isc_mem_free, isc_mem_total(), ISC_R_SUCCESS, isc_test_begin(), isc_test_end(), ISC_TRUE, and mctx.

ATF_TC ( isc_mem_inuse   ) 

ATF_TC_HEAD ( isc_mem_inuse  ,
tc   
)

Definition at line 111 of file mem_test.c.

ATF_TC_BODY ( isc_mem_inuse  ,
tc   
)

Definition at line 115 of file mem_test.c.

References default_memalloc(), default_memfree(), isc_mem_allocate, isc_mem_createx2(), isc_mem_destroy(), isc_mem_free, isc_mem_inuse(), ISC_R_SUCCESS, isc_test_begin(), isc_test_end(), and ISC_TRUE.

ATF_TP_ADD_TCS ( tp   ) 

Definition at line 154 of file mem_test.c.

References isc_mem_inuse(), and isc_mem_total().


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha