mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
convert task_test
This commit is contained in:
@@ -1559,8 +1559,11 @@ isc_task_beginexclusive(isc_task_t *task0) {
|
||||
REQUIRE(VALID_TASK(task));
|
||||
|
||||
REQUIRE(task->state == task_state_running);
|
||||
|
||||
LOCK(&manager->excl_lock);
|
||||
REQUIRE(task == task->manager->excl ||
|
||||
(task->manager->exiting && task->manager->excl == NULL));
|
||||
UNLOCK(&manager->excl_lock);
|
||||
|
||||
if (manager->exclusive_requested || manager->pause_requested) {
|
||||
return (ISC_R_LOCKBUSY);
|
||||
|
@@ -24,7 +24,7 @@ tap_test_program{name='safe_test'}
|
||||
tap_test_program{name='sockaddr_test'}
|
||||
atf_test_program{name='socket_test'}
|
||||
tap_test_program{name='symtab_test'}
|
||||
atf_test_program{name='task_test'}
|
||||
tap_test_program{name='task_test'}
|
||||
tap_test_program{name='taskpool_test'}
|
||||
tap_test_program{name='time_test'}
|
||||
atf_test_program{name='timer_test'}
|
||||
|
@@ -172,8 +172,9 @@ symtab_test@EXEEXT@: symtab_test.@O@ isctest.@O@ ${ISCDEPLIBS}
|
||||
${ISCLIBS} ${LIBS} ${CMOCKA_LIBS}
|
||||
|
||||
task_test@EXEEXT@: task_test.@O@ isctest.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
|
||||
task_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${CMOCKA_CFLAGS} \
|
||||
${LDFLAGS} -o $@ task_test.@O@ isctest.@O@ \
|
||||
${ISCLIBS} ${LIBS} ${CMOCKA_LIBS}
|
||||
|
||||
taskpool_test@EXEEXT@: taskpool_test.@O@ isctest.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${CMOCKA_CFLAGS} \
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user