#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) |
static void* default_memalloc | ( | void * | arg, | |
size_t | size | |||
) | [static] |
static void default_memfree | ( | void * | arg, | |
void * | ptr | |||
) | [static] |
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 | ) |