2
0
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:
Evan Hunt
2018-10-24 13:12:55 -07:00
parent 72f60bdd84
commit 3e52987229
4 changed files with 413 additions and 354 deletions

View File

@@ -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);

View File

@@ -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'}

View File

@@ -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