mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
assert result is ISC_R_SUCCESS
This commit is contained in:
parent
ee6a378fde
commit
76a1c1531a
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue