bind9/tests/isc
Evan Hunt 10accd6260 clean up uses of ISC_R_NOMEMORY
the isc_mem allocation functions can no longer fail; as a result,
ISC_R_NOMEMORY is now rarely used: only when an external library
such as libjson-c or libfstrm could return NULL. (even in
these cases, arguably we should assert rather than returning
ISC_R_NOMEMORY.)

code and comments that mentioned ISC_R_NOMEMORY have been
cleaned up, and the following functions have been changed to
type void, since (in most cases) the only value they could
return was ISC_R_SUCCESS:

- dns_dns64_create()
- dns_dyndb_create()
- dns_ipkeylist_resize()
- dns_kasp_create()
- dns_kasp_key_create()
- dns_keystore_create()
- dns_order_create()
- dns_order_add()
- dns_peerlist_new()
- dns_tkeyctx_create()
- dns_view_create()
- dns_zone_setorigin()
- dns_zone_setfile()
- dns_zone_setstream()
- dns_zone_getdbtype()
- dns_zone_setjournal()
- dns_zone_setkeydirectory()
- isc_lex_openstream()
- isc_portset_create()
- isc_symtab_create()

(the exception is dns_view_create(), which could have returned
other error codes in the event of a crypto library failure when
calling isc_file_sanitize(), but that should be a RUNTIME_CHECK
anyway.)
2025-01-23 15:54:57 -08:00
..
testdata/file Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
ascii_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
async_test.c use a thread-local variable to get the current running loop 2024-04-02 10:35:56 +02:00
buffer_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
counter_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
dnsstream_utils_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
dnsstream_utils_test_data.h Add a set of unit tests for dnsbuffer_t and dnsstream_assembler_t 2022-12-20 21:24:45 +02:00
doh_test.c TLS SNI - add low level support for SNI to the networking code 2024-12-26 17:23:12 +02:00
errno_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
file_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
hash_test.c Remove isc_hash_function macro 2023-09-19 19:56:33 +02:00
hashmap_nodes.h Reduce the size of hashmap_nodes.h file 2024-08-15 10:05:32 +02:00
hashmap_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
heap_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
histo_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
hmac_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
ht_test.c Fix case insensitive matching in isc_ht hash table implementation 2024-02-11 09:36:56 +01:00
job_test.c use a thread-local variable to get the current running loop 2024-04-02 10:35:56 +02:00
lex_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
loop_test.c complete removal of isc_loop_current() 2024-04-02 10:35:56 +02:00
Makefile.am Add known-to-crash static hashmap iterator nodes array 2024-08-14 15:19:04 +00:00
md_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
mem_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
mutex_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
netaddr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
netmgr_common.c TLS SNI - add low level support for SNI to the networking code 2024-12-26 17:23:12 +02:00
netmgr_common.h PROXY Stream pre-rendered PROXY handling test 2023-12-06 15:15:25 +02:00
parse_test.c Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
proxyheader_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
proxyheader_test_data.h Add PROXY header handling unit test suite 2023-12-06 15:15:24 +02:00
proxystream_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
proxyudp_test.c Add pre-rendered PROXY header test for PROXY over UDP 2023-12-06 15:15:25 +02:00
quota_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
radix_test.c Refactor isc_radix_create to return void 2023-10-13 14:44:40 +02:00
random_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
ratelimiter_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
regex_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
result_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
rwlock_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
safe_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
siphash_test.c Implement incremental version of SipHash 2-4 and HalfSipHash 2-4 2023-09-12 16:17:06 +02:00
sockaddr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
spinlock_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
stats_test.c Refactor isc_stats_create() and its downstream users to return void 2023-07-27 11:37:44 +02:00
stream_shutdown.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
symtab_test.c clean up uses of ISC_R_NOMEMORY 2025-01-23 15:54:57 -08:00
tcp_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
tcpdns_test.c TLS SNI - add low level support for SNI to the networking code 2024-12-26 17:23:12 +02:00
time_test.c Fix alpine build by removing LargestIntegralType in time_test 2024-11-22 08:52:03 +01:00
timer_test.c complete removal of isc_loop_current() 2024-04-02 10:35:56 +02:00
tls_test.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
tlsdns_test.c TLS SNI - add low level support for SNI to the networking code 2024-12-26 17:23:12 +02:00
udp_test.c Refactor UDP tests 2023-12-06 15:15:25 +02:00
uv_wrap.h Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
work_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00