From 76a1c1531af92e11eb5cfe150d9a8a3d02b64cd2 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 13 Feb 2019 15:53:41 +1100 Subject: [PATCH] assert result is ISC_R_SUCCESS --- lib/dns/tests/dnstest.c | 1 + lib/isc/tests/socket_test.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/dns/tests/dnstest.c b/lib/dns/tests/dnstest.c index c1418fa534..5c448702a7 100644 --- a/lib/dns/tests/dnstest.c +++ b/lib/dns/tests/dnstest.c @@ -551,6 +551,7 @@ dns_test_namefromstring(const char *namestr, dns_fixedname_t *fname) { name = dns_fixedname_initname(fname); result = isc_buffer_allocate(mctx, &b, length); + assert_int_equal(result, ISC_R_SUCCESS); isc_buffer_putmem(b, (const unsigned char *) namestr, length); result = dns_name_fromtext(name, b, dns_rootname, 0, NULL); diff --git a/lib/isc/tests/socket_test.c b/lib/isc/tests/socket_test.c index 95491b9d86..0df1358983 100644 --- a/lib/isc/tests/socket_test.c +++ b/lib/isc/tests/socket_test.c @@ -817,6 +817,7 @@ udp_trunc_test(void **state) { completion_init(&completion); recv_trunc = false; result = isc_socket_recv(s2, &r, 1, task, event_done, &completion); + assert_int_equal(result, ISC_R_SUCCESS); waitfor(&completion); assert_true(completion.done); assert_int_equal(completion.result, ISC_R_SUCCESS);