From: Michał Kępień Date: Thu, 18 May 2023 13:12:23 +0000 (+0200) Subject: Include whenever including X-Git-Tag: v9.19.14~41^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c2dcd055fe03f3ec5c76bc1c778b97aa4941e17b;p=thirdparty%2Fbind9.git Include whenever including Development versions of cmocka require the intmax_t and uintmax_t types to be defined by the time the test code includes the header. These types are defined in the header, which is included by the header, which in turn is already explicitly included by some of the programs in the tests/ directory. Ensure all programs in that directory that include the header also include the header to future-proof the code while keeping the change set minimal and the resulting code consistent. Also prevent explicitly including the header in those programs as it is included by the header. --- diff --git a/tests/dns/acl_test.c b/tests/dns/acl_test.c index 419ffc06d70..306921e64aa 100644 --- a/tests/dns/acl_test.c +++ b/tests/dns/acl_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/db_test.c b/tests/dns/db_test.c index 87076b93508..a854e3669e2 100644 --- a/tests/dns/db_test.c +++ b/tests/dns/db_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/dbdiff_test.c b/tests/dns/dbdiff_test.c index 4857683e4c5..f0fb8804f82 100644 --- a/tests/dns/dbdiff_test.c +++ b/tests/dns/dbdiff_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/dbiterator_test.c b/tests/dns/dbiterator_test.c index f8f008bd519..f0277b16b85 100644 --- a/tests/dns/dbiterator_test.c +++ b/tests/dns/dbiterator_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/dbversion_test.c b/tests/dns/dbversion_test.c index 8c62436901d..2d37e891bd2 100644 --- a/tests/dns/dbversion_test.c +++ b/tests/dns/dbversion_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/dns64_test.c b/tests/dns/dns64_test.c index c55d00ef106..ad547ae060b 100644 --- a/tests/dns/dns64_test.c +++ b/tests/dns/dns64_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/dst_test.c b/tests/dns/dst_test.c index 15b89d9d4ac..b8f80dd8aab 100644 --- a/tests/dns/dst_test.c +++ b/tests/dns/dst_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/geoip_test.c b/tests/dns/geoip_test.c index b4e7cf80a50..d008117fbc1 100644 --- a/tests/dns/geoip_test.c +++ b/tests/dns/geoip_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/master_test.c b/tests/dns/master_test.c index a2076395a8f..8d33f5ed4b1 100644 --- a/tests/dns/master_test.c +++ b/tests/dns/master_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/nsec3_test.c b/tests/dns/nsec3_test.c index 4cbf6a93245..c2fcacd9943 100644 --- a/tests/dns/nsec3_test.c +++ b/tests/dns/nsec3_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/nsec3param_test.c b/tests/dns/nsec3param_test.c index 84d1b4cad0f..b0282d7e07f 100644 --- a/tests/dns/nsec3param_test.c +++ b/tests/dns/nsec3param_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/qp_test.c b/tests/dns/qp_test.c index 8a1156b5370..75082917200 100644 --- a/tests/dns/qp_test.c +++ b/tests/dns/qp_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/qpmulti_test.c b/tests/dns/qpmulti_test.c index 96a26930333..89440984d67 100644 --- a/tests/dns/qpmulti_test.c +++ b/tests/dns/qpmulti_test.c @@ -12,11 +12,11 @@ */ #include +#include #include /* IWYU pragma: keep */ #include #include #include -#include #include #define UNIT_TESTING diff --git a/tests/dns/rbtdb_test.c b/tests/dns/rbtdb_test.c index 817dd67e2fe..681c0776812 100644 --- a/tests/dns/rbtdb_test.c +++ b/tests/dns/rbtdb_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/rdata_test.c b/tests/dns/rdata_test.c index 234c74b54bc..8da047b5c12 100644 --- a/tests/dns/rdata_test.c +++ b/tests/dns/rdata_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/rdataset_test.c b/tests/dns/rdataset_test.c index e9b47ecbf3f..fc21b29f9d3 100644 --- a/tests/dns/rdataset_test.c +++ b/tests/dns/rdataset_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/resolver_test.c b/tests/dns/resolver_test.c index 6db03141fac..e9d133e3fcc 100644 --- a/tests/dns/resolver_test.c +++ b/tests/dns/resolver_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/rsa_test.c b/tests/dns/rsa_test.c index f19105fb015..c9895690d44 100644 --- a/tests/dns/rsa_test.c +++ b/tests/dns/rsa_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/sigs_test.c b/tests/dns/sigs_test.c index 1dfdd83e348..88e4f7fb4e7 100644 --- a/tests/dns/sigs_test.c +++ b/tests/dns/sigs_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/tsig_test.c b/tests/dns/tsig_test.c index e18fc69dd6f..a7d11e9e81e 100644 --- a/tests/dns/tsig_test.c +++ b/tests/dns/tsig_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/zonemgr_test.c b/tests/dns/zonemgr_test.c index 33d882f67f3..3d7c3b688b3 100644 --- a/tests/dns/zonemgr_test.c +++ b/tests/dns/zonemgr_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/dns/zt_test.c b/tests/dns/zt_test.c index f3821abc2ef..c5ab32dff92 100644 --- a/tests/dns/zt_test.c +++ b/tests/dns/zt_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/irs/resconf_test.c b/tests/irs/resconf_test.c index cb122df7638..367898f8c2a 100644 --- a/tests/irs/resconf_test.c +++ b/tests/irs/resconf_test.c @@ -13,6 +13,7 @@ #if HAVE_CMOCKA +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/aes_test.c b/tests/isc/aes_test.c index c328b92b02d..9e9ea22898a 100644 --- a/tests/isc/aes_test.c +++ b/tests/isc/aes_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/ascii_test.c b/tests/isc/ascii_test.c index 078a98ce274..f49b64b9e2f 100644 --- a/tests/isc/ascii_test.c +++ b/tests/isc/ascii_test.c @@ -12,10 +12,10 @@ */ #include +#include #include /* IWYU pragma: keep */ #include #include -#include #include #define UNIT_TESTING diff --git a/tests/isc/async_test.c b/tests/isc/async_test.c index 41f0ee18f50..c56a12b75b2 100644 --- a/tests/isc/async_test.c +++ b/tests/isc/async_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/buffer_test.c b/tests/isc/buffer_test.c index a0530784c33..fe6d2bcc276 100644 --- a/tests/isc/buffer_test.c +++ b/tests/isc/buffer_test.c @@ -12,6 +12,7 @@ */ #include +#include #include #include /* IWYU pragma: keep */ #include diff --git a/tests/isc/counter_test.c b/tests/isc/counter_test.c index 065a6f0a3bf..dc8dc50f6ad 100644 --- a/tests/isc/counter_test.c +++ b/tests/isc/counter_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/crc64_test.c b/tests/isc/crc64_test.c index f635b1bb035..a652dd5b015 100644 --- a/tests/isc/crc64_test.c +++ b/tests/isc/crc64_test.c @@ -13,6 +13,7 @@ /* ! \file */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/errno_test.c b/tests/isc/errno_test.c index 11d48fa8f58..fbfe56ad4e1 100644 --- a/tests/isc/errno_test.c +++ b/tests/isc/errno_test.c @@ -12,6 +12,7 @@ */ #include +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/file_test.c b/tests/isc/file_test.c index 39670b57eb8..6b75ba24905 100644 --- a/tests/isc/file_test.c +++ b/tests/isc/file_test.c @@ -12,6 +12,7 @@ */ #include +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/heap_test.c b/tests/isc/heap_test.c index 9e29a4b8123..19e3ba5a8cb 100644 --- a/tests/isc/heap_test.c +++ b/tests/isc/heap_test.c @@ -13,6 +13,7 @@ /* ! \file */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/histo_test.c b/tests/isc/histo_test.c index f94cb52424f..8f905120b52 100644 --- a/tests/isc/histo_test.c +++ b/tests/isc/histo_test.c @@ -13,6 +13,7 @@ /* ! \file */ +#include #include #include /* IWYU pragma: keep */ #include diff --git a/tests/isc/hmac_test.c b/tests/isc/hmac_test.c index 9984cc7208d..d836bbed31d 100644 --- a/tests/isc/hmac_test.c +++ b/tests/isc/hmac_test.c @@ -13,6 +13,7 @@ /* ! \file */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/job_test.c b/tests/isc/job_test.c index 9c3a9fff4a2..5e05dbdcbca 100644 --- a/tests/isc/job_test.c +++ b/tests/isc/job_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/lex_test.c b/tests/isc/lex_test.c index 538e1359820..ee0a0843419 100644 --- a/tests/isc/lex_test.c +++ b/tests/isc/lex_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/loop_test.c b/tests/isc/loop_test.c index b7acad42244..539e273c282 100644 --- a/tests/isc/loop_test.c +++ b/tests/isc/loop_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/md_test.c b/tests/isc/md_test.c index f9adb4fb189..579078cb7e5 100644 --- a/tests/isc/md_test.c +++ b/tests/isc/md_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/mutex_test.c b/tests/isc/mutex_test.c index bd675db28b1..3348964989b 100644 --- a/tests/isc/mutex_test.c +++ b/tests/isc/mutex_test.c @@ -12,6 +12,7 @@ */ #include +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/netaddr_test.c b/tests/isc/netaddr_test.c index b44982c26b0..2394e111666 100644 --- a/tests/isc/netaddr_test.c +++ b/tests/isc/netaddr_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/netmgr_common.c b/tests/isc/netmgr_common.c index 6ed42318b89..300fb5e27fd 100644 --- a/tests/isc/netmgr_common.c +++ b/tests/isc/netmgr_common.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/quota_test.c b/tests/isc/quota_test.c index 8efa9232c75..59e865852da 100644 --- a/tests/isc/quota_test.c +++ b/tests/isc/quota_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/radix_test.c b/tests/isc/radix_test.c index 2fe9294d697..1e03e52f2df 100644 --- a/tests/isc/radix_test.c +++ b/tests/isc/radix_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/regex_test.c b/tests/isc/regex_test.c index 1650af9dc69..379dfdcc152 100644 --- a/tests/isc/regex_test.c +++ b/tests/isc/regex_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/result_test.c b/tests/isc/result_test.c index cca66b85d61..cec195bef4b 100644 --- a/tests/isc/result_test.c +++ b/tests/isc/result_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/safe_test.c b/tests/isc/safe_test.c index 39221649c22..a3f01fe9aff 100644 --- a/tests/isc/safe_test.c +++ b/tests/isc/safe_test.c @@ -13,6 +13,7 @@ /* ! \file */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/siphash_test.c b/tests/isc/siphash_test.c index f78c1d1e725..6fca9303060 100644 --- a/tests/isc/siphash_test.c +++ b/tests/isc/siphash_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/sockaddr_test.c b/tests/isc/sockaddr_test.c index d89ba51b1e9..4dd70602a8d 100644 --- a/tests/isc/sockaddr_test.c +++ b/tests/isc/sockaddr_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/spinlock_test.c b/tests/isc/spinlock_test.c index a7eaae9ae45..148832babfd 100644 --- a/tests/isc/spinlock_test.c +++ b/tests/isc/spinlock_test.c @@ -12,6 +12,7 @@ */ #include +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/stats_test.c b/tests/isc/stats_test.c index 79d784e2df8..a4753236e50 100644 --- a/tests/isc/stats_test.c +++ b/tests/isc/stats_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/stream_shutdown.c b/tests/isc/stream_shutdown.c index 71d6a99ff00..fc0264cb7ae 100644 --- a/tests/isc/stream_shutdown.c +++ b/tests/isc/stream_shutdown.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/symtab_test.c b/tests/isc/symtab_test.c index 27b8af37ff7..2b4f30d9f2c 100644 --- a/tests/isc/symtab_test.c +++ b/tests/isc/symtab_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/tcp_test.c b/tests/isc/tcp_test.c index 5b990218c85..79c85050862 100644 --- a/tests/isc/tcp_test.c +++ b/tests/isc/tcp_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/tcpdns_test.c b/tests/isc/tcpdns_test.c index 3fedd9e9d4a..058f1017272 100644 --- a/tests/isc/tcpdns_test.c +++ b/tests/isc/tcpdns_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/time_test.c b/tests/isc/time_test.c index a581af43f3f..18b42e5098c 100644 --- a/tests/isc/time_test.c +++ b/tests/isc/time_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/tls_test.c b/tests/isc/tls_test.c index 58aaf131d2e..b3ed83b3bcc 100644 --- a/tests/isc/tls_test.c +++ b/tests/isc/tls_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/tlsdns_test.c b/tests/isc/tlsdns_test.c index b3a09b7726e..1e02b0a4834 100644 --- a/tests/isc/tlsdns_test.c +++ b/tests/isc/tlsdns_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/udp_test.c b/tests/isc/udp_test.c index 5b8a0ba5276..3ede5a29f10 100644 --- a/tests/isc/udp_test.c +++ b/tests/isc/udp_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isc/work_test.c b/tests/isc/work_test.c index 769508fa02c..3c126ee613e 100644 --- a/tests/isc/work_test.c +++ b/tests/isc/work_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/isccfg/duration_test.c b/tests/isccfg/duration_test.c index b152578b820..8bc911cf23c 100644 --- a/tests/isccfg/duration_test.c +++ b/tests/isccfg/duration_test.c @@ -11,11 +11,11 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include #include -#include #include #include #include diff --git a/tests/isccfg/parser_test.c b/tests/isccfg/parser_test.c index 4e2d2881ac3..baba26dd6d4 100644 --- a/tests/isccfg/parser_test.c +++ b/tests/isccfg/parser_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/ns/listenlist_test.c b/tests/ns/listenlist_test.c index 35ac84f15cf..327526dcb83 100644 --- a/tests/ns/listenlist_test.c +++ b/tests/ns/listenlist_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/ns/notify_test.c b/tests/ns/notify_test.c index 1410f6d1484..863a4a0692b 100644 --- a/tests/ns/notify_test.c +++ b/tests/ns/notify_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include /* IWYU pragma: keep */ #include #include diff --git a/tests/ns/plugin_test.c b/tests/ns/plugin_test.c index 90d6bb14de0..92b9b78b8d1 100644 --- a/tests/ns/plugin_test.c +++ b/tests/ns/plugin_test.c @@ -11,6 +11,7 @@ * information regarding copyright ownership. */ +#include #include #include /* IWYU pragma: keep */ #include