update copyright notice
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dbiterator_test.c,v 1.1.4.4 2011/08/23 03:53:05 marka Exp $ */
|
||||
/* $Id: dbiterator_test.c,v 1.1.4.5 2011/08/23 23:53:14 tbox Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -63,7 +63,7 @@ setup_db(const char *testfile, dns_dbtype_t dbtype, dns_db_t **db) {
|
||||
if (result != ISC_R_SUCCESS)
|
||||
return(result);
|
||||
|
||||
result = dns_db_create(mctx, "rbt", &dns_origin, dbtype,
|
||||
result = dns_db_create(mctx, "rbt", &dns_origin, dbtype,
|
||||
dns_rdataclass_in, 0, NULL, db);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
return (result);
|
||||
@@ -106,7 +106,7 @@ test_create(const atf_tc_t *tc) {
|
||||
dns_dbtype_cache, &db);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
dns_dbiterator_destroy(&iter);
|
||||
@@ -155,7 +155,7 @@ test_walk(const atf_tc_t *tc) {
|
||||
dns_dbtype_cache, &db);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
for (result = dns_dbiterator_first(iter);
|
||||
@@ -215,7 +215,7 @@ static void test_reverse(const atf_tc_t *tc) {
|
||||
dns_dbtype_cache, &db);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
for (result = dns_dbiterator_last(iter);
|
||||
@@ -275,13 +275,13 @@ static void test_seek(const atf_tc_t *tc) {
|
||||
dns_dbtype_cache, &db);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = make_name("c." TEST_ORIGIN, seekname);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_dbiterator_seek(iter, seekname);
|
||||
result = dns_dbiterator_seek(iter, seekname);
|
||||
ATF_CHECK_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
while (result == ISC_R_SUCCESS) {
|
||||
@@ -343,13 +343,13 @@ static void test_seek_empty(const atf_tc_t *tc) {
|
||||
dns_dbtype_cache, &db);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = make_name("d." TEST_ORIGIN, seekname);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_dbiterator_seek(iter, seekname);
|
||||
result = dns_dbiterator_seek(iter, seekname);
|
||||
ATF_CHECK_EQ(result, ISC_R_NOTFOUND);
|
||||
|
||||
dns_dbiterator_destroy(&iter);
|
||||
@@ -400,13 +400,13 @@ static void test_seek_nx(const atf_tc_t *tc) {
|
||||
dns_dbtype_cache, &db);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
result = dns_db_createiterator(db, 0, &iter);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = make_name("nonexistent." TEST_ORIGIN, seekname);
|
||||
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
||||
|
||||
result = dns_dbiterator_seek(iter, seekname);
|
||||
result = dns_dbiterator_seek(iter, seekname);
|
||||
ATF_CHECK_EQ(result, ISC_R_NOTFOUND);
|
||||
|
||||
dns_dbiterator_destroy(&iter);
|
||||
|
||||
16
lib/dns/tests/testdata/dbiterator/zone1.data
vendored
16
lib/dns/tests/testdata/dbiterator/zone1.data
vendored
@@ -1,3 +1,19 @@
|
||||
; Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
|
||||
;
|
||||
; Permission to use, copy, modify, and/or distribute this software for any
|
||||
; purpose with or without fee is hereby granted, provided that the above
|
||||
; copyright notice and this permission notice appear in all copies.
|
||||
;
|
||||
; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
; PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
; $Id: zone1.data,v 1.1.4.3 2011/08/23 23:53:14 tbox Exp $
|
||||
|
||||
$TTL 600
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
2011080901 ;serial
|
||||
|
||||
Reference in New Issue
Block a user