Lines Matching refs:result

45 	isc_result_t		result;
61 result = dns_name_fromtext(&dns_origin, &source, dns_rootname,
63 if (result != ISC_R_SUCCESS)
64 return(result);
66 result = dns_db_create(mctx, "rbt", &dns_origin, dbtype,
68 if (result != ISC_R_SUCCESS)
69 return (result);
79 result = dns_db_load(*db, testfile);
80 return (result);
98 isc_result_t result;
102 result = dns_test_begin(NULL, ISC_FALSE);
103 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
105 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
107 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
109 result = dns_db_createiterator(db, 0, &iter);
110 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
138 isc_result_t result;
151 result = dns_test_begin(NULL, ISC_FALSE);
152 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
154 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
156 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
158 result = dns_db_createiterator(db, 0, &iter);
159 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
161 for (result = dns_dbiterator_first(iter);
162 result == ISC_R_SUCCESS;
163 result = dns_dbiterator_next(iter)) {
164 result = dns_dbiterator_current(iter, &node, name);
165 if (result == DNS_R_NEWORIGIN)
166 result = ISC_R_SUCCESS;
167 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
201 isc_result_t result;
214 result = dns_test_begin(NULL, ISC_FALSE);
215 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
217 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
219 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
221 result = dns_db_createiterator(db, 0, &iter);
222 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
224 for (result = dns_dbiterator_last(iter);
225 result == ISC_R_SUCCESS;
226 result = dns_dbiterator_prev(iter)) {
227 result = dns_dbiterator_current(iter, &node, name);
228 if (result == DNS_R_NEWORIGIN)
229 result = ISC_R_SUCCESS;
230 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
262 isc_result_t result;
277 result = dns_test_begin(NULL, ISC_FALSE);
278 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
280 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
282 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
284 result = dns_db_createiterator(db, 0, &iter);
285 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
287 result = make_name("c." TEST_ORIGIN, seekname);
288 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
290 result = dns_dbiterator_seek(iter, seekname);
291 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
293 while (result == ISC_R_SUCCESS) {
294 result = dns_dbiterator_current(iter, &node, name);
295 if (result == DNS_R_NEWORIGIN)
296 result = ISC_R_SUCCESS;
297 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
299 result = dns_dbiterator_next(iter);
337 isc_result_t result;
348 result = dns_test_begin(NULL, ISC_FALSE);
349 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
351 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
353 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
355 result = dns_db_createiterator(db, 0, &iter);
356 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
358 result = make_name("d." TEST_ORIGIN, seekname);
359 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
361 result = dns_dbiterator_seek(iter, seekname);
362 ATF_CHECK_EQ(result, ISC_R_NOTFOUND);
394 isc_result_t result;
405 result = dns_test_begin(NULL, ISC_FALSE);
406 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
408 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
410 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
412 result = dns_db_createiterator(db, 0, &iter);
413 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
415 result = make_name("nonexistent." TEST_ORIGIN, seekname);
416 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
418 result = dns_dbiterator_seek(iter, seekname);
419 ATF_CHECK_EQ(result, ISC_R_NOTFOUND);