bind9/bin/tests
Ondřej Surý b222783ae9 Add small tweaks to the code to fix compilation when ISC assertions are disabled
While implementing the new unit testing framework cmocka, it was found that the
BIND 9 code doesn't compile when assertions are disabled or replaced with any
function (such as mock_assert() from cmocka unit testing framework) that's not
directly recognized as assertion by the compiler.

This made the compiler to complain about blocks of code that was recognized as
unreachable before, but now it isn't.

The changes in this commit include:

* assigns default values to couple of local variables,
* moves some return statements around INSIST assertions,
* adds __builtin_unreachable(); annotations after some INSIST assertions,
* fixes one broken assertion (= instead of ==)

(cherry picked from commit fbd2e47f51)
2018-11-08 14:05:23 +07:00
..
bigtest update file headers 2018-03-15 18:40:21 -07:00
optional Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00
pkcs11 Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00
startperf Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
system Add small tweaks to the code to fix compilation when ISC assertions are disabled 2018-11-08 14:05:23 +07:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:39:54 -08:00
virtual-time Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
win32 [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
.gitignore migrate t_dst signature test to lib/dns/tests/dst_test 2018-03-09 14:39:56 -08:00
cfg_test.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00
fromhex.pl Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
headerdep_test.sh.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
Makefile.in Alter distclean rule to prevent recursing into the same directory twice 2018-04-10 20:04:31 -07:00
makejournal.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00
named.conf Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
wire_test.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00