task_test.c File Reference

#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include <isc/task.h>
#include <isc/util.h>
#include "../task_p.h"
#include "isctest.h"

Go to the source code of this file.

Functions

static void set (isc_task_t *task, isc_event_t *event)
static void set_and_drop (isc_task_t *task, isc_event_t *event)
 ATF_TC (create_task)
 ATF_TC_HEAD (create_task, tc)
 ATF_TC_BODY (create_task, tc)
 ATF_TC (all_events)
 ATF_TC_HEAD (all_events, tc)
 ATF_TC_BODY (all_events, tc)
 ATF_TC (privileged_events)
 ATF_TC_HEAD (privileged_events, tc)
 ATF_TC_BODY (privileged_events, tc)
 ATF_TC (privilege_drop)
 ATF_TC_HEAD (privilege_drop, tc)
 ATF_TC_BODY (privilege_drop, tc)
 ATF_TP_ADD_TCS (tp)

Variables

int counter = 0
isc_mutex_t set_lock


Detailed Description

Definition in file task_test.c.


Function Documentation

static void set ( isc_task_t task,
isc_event_t event 
) [static]

Definition at line 42 of file task_test.c.

References counter, isc_event_free(), LOCK, set_lock, UNLOCK, and UNUSED.

Referenced by dns_dnssec_sign(), dns_dnssec_verify3(), and signset().

static void set_and_drop ( isc_task_t task,
isc_event_t event 
) [static]

Definition at line 54 of file task_test.c.

References counter, isc_event_free(), isc_taskmgr_mode(), isc_taskmgr_setmode(), isc_taskmgrmode_normal, LOCK, set_lock, taskmgr, UNLOCK, and UNUSED.

Referenced by ATF_TC_BODY().

ATF_TC ( create_task   ) 

ATF_TC_HEAD ( create_task  ,
tc   
)

Definition at line 73 of file task_test.c.

ATF_TC_BODY ( create_task  ,
tc   
)

Definition at line 76 of file task_test.c.

References ISC_R_SUCCESS, isc_task_create(), isc_task_destroy(), isc_test_begin(), isc_test_end(), ISC_TRUE, taskmgr, and UNUSED.

ATF_TC ( all_events   ) 

ATF_TC_HEAD ( all_events  ,
tc   
)

Definition at line 96 of file task_test.c.

ATF_TC_BODY ( all_events  ,
tc   
)

Definition at line 99 of file task_test.c.

References counter, isc__taskmgr_dispatch(), isc__taskmgr_ready(), isc_event_allocate(), isc_mutex_init, ISC_R_SUCCESS, isc_task_create(), isc_task_destroy(), isc_task_send(), ISC_TASKEVENT_TEST, isc_test_begin(), isc_test_end(), isc_test_nap(), ISC_TRUE, mctx, set_lock, taskmgr, and UNUSED.

ATF_TC ( privileged_events   ) 

ATF_TC_HEAD ( privileged_events  ,
tc   
)

Definition at line 153 of file task_test.c.

ATF_TC_BODY ( privileged_events  ,
tc   
)

Definition at line 156 of file task_test.c.

References counter, isc__taskmgr_dispatch(), isc__taskmgr_ready(), isc_event_allocate(), ISC_FALSE, isc_mutex_init, ISC_R_SUCCESS, isc_task_create(), isc_task_destroy(), isc_task_privilege(), isc_task_send(), isc_task_setname(), isc_task_setprivilege(), ISC_TASKEVENT_TEST, isc_taskmgr_mode(), isc_taskmgr_setmode(), isc_taskmgrmode_normal, isc_taskmgrmode_privileged, isc_test_begin(), isc_test_end(), isc_test_nap(), ISC_TRUE, mctx, set_lock, taskmgr, and UNUSED.

ATF_TC ( privilege_drop   ) 

ATF_TC_HEAD ( privilege_drop  ,
tc   
)

Definition at line 282 of file task_test.c.

ATF_TC_BODY ( privilege_drop  ,
tc   
)

Definition at line 285 of file task_test.c.

References counter, isc__taskmgr_dispatch(), isc__taskmgr_ready(), isc_event_allocate(), isc_mutex_init, ISC_R_SUCCESS, isc_task_create(), isc_task_destroy(), isc_task_privilege(), isc_task_send(), isc_task_setname(), isc_task_setprivilege(), ISC_TASKEVENT_TEST, isc_taskmgr_mode(), isc_taskmgr_setmode(), isc_taskmgrmode_normal, isc_taskmgrmode_privileged, isc_test_begin(), isc_test_end(), isc_test_nap(), ISC_TRUE, mctx, set_and_drop(), set_lock, taskmgr, and UNUSED.

ATF_TP_ADD_TCS ( tp   ) 

Definition at line 408 of file task_test.c.


Variable Documentation

int counter = 0

Definition at line 38 of file task_test.c.

Referenced by ATF_TC_BODY(), dns_rdatatypestats_increment(), dump_counters(), isc_counter_create(), isc_counter_detach(), query_send(), set(), set_and_drop(), and update_rdatasetstats().

isc_mutex_t set_lock

Definition at line 39 of file task_test.c.

Referenced by ATF_TC_BODY(), set(), and set_and_drop().


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