]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_10] fix unit test
authorEvan Hunt <each@isc.org>
Thu, 24 Mar 2016 17:32:22 +0000 (10:32 -0700)
committerEvan Hunt <each@isc.org>
Thu, 24 Mar 2016 17:32:22 +0000 (10:32 -0700)
lib/dns/tests/rdata_test.c

index 7a63ac5cc8badc3c897c5aaf79804ac2cd7af41b..ddbf07a01c7f6f7bc8b5e1fccb6e036e0814a936 100644 (file)
@@ -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);
        }
 }