]> git.ipfire.org Git - thirdparty/bind9.git/commit
Ignore additional return codes in the netmgr unit tests
authorOndřej Surý <ondrej@isc.org>
Wed, 12 Oct 2022 12:40:49 +0000 (14:40 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 12 Oct 2022 13:07:53 +0000 (15:07 +0200)
commitac4cc8443dddc8e900188b4beae54c7ca222094c
tree704edeeeab499fc73ddfd484b6573d58d76b2d5c
parent981d6ef1c05e3d0941be2b788946981edb08d11e
Ignore additional return codes in the netmgr unit tests

There was inconsistency in which error codes would get accepted and
ignored in the network manager unit test callbacks.  Add following
results, so we just detach the handle instead of causing assertion
failure:

* ISC_R_SHUTTINGDOWN - when the network manager is shutting down
* ISC_R_CANCELED - the socket has been shut down
* ISC_R_EOF - the (TCP) communication has ended on the other side
* ISC_R_CONNECTIONRESET - the TCP connection was reset

This should fix some of the spurious unit test failures.
tests/isc/netmgr_common.c