]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix the task unit test
authorAram Sargsyan <aram@isc.org>
Tue, 1 Apr 2025 10:46:05 +0000 (10:46 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 10 Apr 2025 19:42:20 +0000 (19:42 +0000)
commita6aee6a95ef1b128468d9677b60ccf50dde5e75d
tree7db161b390217b367af097bbf99f75f65ea0ad4b
parent24ba32450d744403097599f709104dda48d708bb
Fix the task unit test

The timers can be destroyed while the timer actions are still running,
and when the action calls isc_event_free() it can assert, because it's
trying to access the destroyed timer object.

Before destroying the timers, first disable them, then wait 2 seconds
of grace period before destroying them.
tests/isc/task_test.c