From: Mark Andrews Date: Wed, 13 Feb 2019 04:53:41 +0000 (+1100) Subject: assert result is ISC_R_SUCCESS X-Git-Tag: v9.12.4rc1~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48d49338a3e83c014866a71a2b3d1c618671736c;p=thirdparty%2Fbind9.git assert result is ISC_R_SUCCESS (cherry picked from commit 76a1c1531af92e11eb5cfe150d9a8a3d02b64cd2) --- diff --git a/lib/dns/tests/dnstest.c b/lib/dns/tests/dnstest.c index 88637cfc6a1..2d4d44ac5d1 100644 --- a/lib/dns/tests/dnstest.c +++ b/lib/dns/tests/dnstest.c @@ -566,6 +566,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 01e2063becf..9de11d9a7b0 100644 --- a/lib/isc/tests/socket_test.c +++ b/lib/isc/tests/socket_test.c @@ -838,6 +838,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);