bind9/tests/dns
Evan Hunt 25c9fb54da standardize CHECK and RETERR macros
previously, there were over 40 separate definitions of CHECK macros, of
which most used "goto cleanup", and the rest "goto failure" or "goto
out". there were another 10 definitions of RETERR, of which most were
identical to CHECK, but some simply returned a result code instead of
jumping to a cleanup label.

this has now been standardized throughout the code base: RETERR is for
returning an error code in the case of an error, and CHECK is for jumping
to a cleanup tag, which is now always called "cleanup". both macros are
defined in isc/util.h.

(cherry picked from commit 52bba5cc34)
2025-12-03 19:17:20 -08:00
..
comparekeys Remove TKEY Mode 2 (Diffie-Hellman) 2023-03-08 08:36:25 +01:00
testdata Move resconf_test.c to tests/dns and cleanup 2024-12-12 22:50:22 +00:00
testkeys Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
.gitignore Remove test.skr unit test file 2024-09-09 17:42:05 +00:00
acl_test.c Refactor dns_{acl,aclenv}_create to return void 2023-10-13 14:44:40 +02:00
badcache_test.c Improve the badcache cleaning by adding LRU and using RCU 2024-11-27 17:07:03 +00:00
db_test.c add a unit test with an empty node 2025-03-14 23:23:00 +00:00
dbdiff_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
dbiterator_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
dbversion_test.c qpzone find() function could set foundname incorrectly 2025-03-17 09:27:09 +00:00
diff_test.c Import isc/list.h after cmocka to avoid redefinition errors 2025-07-29 14:07:05 +02:00
dispatch_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
dns64_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
dnstap_test.c Improve the badcache cleaning by adding LRU and using RCU 2024-11-27 17:07:03 +00:00
dst_test.c Use clang-format-20 to update formatting 2025-06-25 13:32:08 +10:00
ede_test.c update EDE copy and add dup tests 2025-01-30 12:37:55 +00:00
geoip_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
Kdh.+002+18602.key Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
keytable_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
Krsa.+008+29238.key Check if RSASHA1 is supported by the OS 2022-08-09 16:22:19 +02:00
Makefile.am Move resconf_test.c to tests/dns and cleanup 2024-12-12 22:50:22 +00:00
master_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
mkraw.pl Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
name_test.c Use clang-format-20 to update formatting 2025-06-25 13:32:08 +10:00
nametree_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
nsec3_test.c Change max NSEC3 iterations in unit tests to 50 2023-12-05 14:58:58 +00:00
nsec3param_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
private_test.c Preserve brackets around string concatenation 2025-06-25 13:26:13 +10:00
qp_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
qpdb_test.c standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
qpmulti_test.c Fix dns_qpmulti_memusage() on empty dns_qpmulti_t instance 2025-09-17 14:01:44 +02:00
qpzone_test.c standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
rbt_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
rdata_test.c AMTRELAY type 0 presentation format handling was wrong 2025-11-20 08:47:22 +00:00
rdataset_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
rdatasetstats_test.c Refactor isc_stats_create() and its downstream users to return void 2023-07-27 11:37:44 +02:00
resconf_test.c Move resconf_test.c to tests/dns and cleanup 2024-12-12 22:50:22 +00:00
resolver_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
rsa_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
sigs_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
skr_test.c Fix dnssec-keygen key collision checking for KEY rrtype keys 2025-10-22 12:55:41 +11:00
time_test.c Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
tsig_test.c standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
update_test.c standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
zonemgr_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
zt_test.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00