pool_test.c File Reference

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

Go to the source code of this file.

Functions

static isc_result_t poolinit (void **target, void *arg)
static void poolfree (void **target)
 ATF_TC (create_pool)
 ATF_TC_HEAD (create_pool, tc)
 ATF_TC_BODY (create_pool, tc)
 ATF_TC (expand_pool)
 ATF_TC_HEAD (expand_pool, tc)
 ATF_TC_BODY (expand_pool, tc)
 ATF_TC (get_objects)
 ATF_TC_HEAD (get_objects, tc)
 ATF_TC_BODY (get_objects, tc)
 ATF_TP_ADD_TCS (tp)


Detailed Description

Definition in file pool_test.c.


Function Documentation

static isc_result_t poolinit ( void **  target,
void *  arg 
) [static]

Definition at line 33 of file pool_test.c.

References ISC_R_SUCCESS, and isc_task_create().

Referenced by ATF_TC_BODY().

static void poolfree ( void **  target  )  [static]

Definition at line 47 of file pool_test.c.

References isc_task_destroy().

Referenced by ATF_TC_BODY().

ATF_TC ( create_pool   ) 

ATF_TC_HEAD ( create_pool  ,
tc   
)

Definition at line 59 of file pool_test.c.

ATF_TC_BODY ( create_pool  ,
tc   
)

Definition at line 62 of file pool_test.c.

References isc_pool_count(), isc_pool_create(), isc_pool_destroy(), ISC_R_SUCCESS, isc_test_begin(), isc_test_end(), ISC_TRUE, mctx, poolfree(), poolinit(), taskmgr, and UNUSED.

ATF_TC ( expand_pool   ) 

ATF_TC_HEAD ( expand_pool  ,
tc   
)

Definition at line 83 of file pool_test.c.

ATF_TC_BODY ( expand_pool  ,
tc   
)

Definition at line 86 of file pool_test.c.

References isc_pool_count(), isc_pool_create(), isc_pool_destroy(), isc_pool_expand(), ISC_R_SUCCESS, isc_test_begin(), isc_test_end(), ISC_TRUE, mctx, poolfree(), poolinit(), taskmgr, and UNUSED.

ATF_TC ( get_objects   ) 

ATF_TC_HEAD ( get_objects  ,
tc   
)

Definition at line 135 of file pool_test.c.

ATF_TC_BODY ( get_objects  ,
tc   
)

Definition at line 138 of file pool_test.c.

References isc_pool_count(), isc_pool_create(), isc_pool_destroy(), isc_pool_get(), ISC_R_SUCCESS, isc_task_attach(), isc_task_detach(), isc_test_begin(), isc_test_end(), ISC_TRUE, mctx, poolfree(), poolinit(), taskmgr, and UNUSED.

ATF_TP_ADD_TCS ( tp   ) 

Definition at line 179 of file pool_test.c.


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