mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 06:40:01 -04:00
[v9_10] fix unit test
This commit is contained in:
parent
f2b7ff5fdd
commit
e8fd60b02d
1 changed files with 4 additions and 4 deletions
|
|
@ -105,7 +105,7 @@ ATF_TC_BODY(edns_client_subnet, tc) {
|
|||
0x00, 0x08, 0x00, 0x04,
|
||||
0x00, 0x01, 0x00, 0x00
|
||||
},
|
||||
8, ISC_TRUE
|
||||
8, ISC_FALSE
|
||||
},
|
||||
{
|
||||
/* Option code family 2 (ipv6) , source 0, scope 0 */
|
||||
|
|
@ -113,7 +113,7 @@ ATF_TC_BODY(edns_client_subnet, tc) {
|
|||
0x00, 0x08, 0x00, 0x04,
|
||||
0x00, 0x02, 0x00, 0x00
|
||||
},
|
||||
8, ISC_TRUE
|
||||
8, ISC_FALSE
|
||||
},
|
||||
{
|
||||
/* extra octet */
|
||||
|
|
@ -222,9 +222,9 @@ ATF_TC_BODY(edns_client_subnet, tc) {
|
|||
&dctx, 0, &target1);
|
||||
dns_decompress_invalidate(&dctx);
|
||||
if (test_data[i].ok)
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
ATF_CHECK_EQ(result, ISC_R_SUCCESS);
|
||||
else
|
||||
ATF_REQUIRE(result != ISC_R_SUCCESS);
|
||||
ATF_CHECK(result != ISC_R_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue