Commit 56c6fc0d authored by Mark Andrews's avatar Mark Andrews
Browse files

only call dns_test_begin once

(cherry picked from commit f13c7b01746a07bef87a386ceff93ccb2a7488a9)
parent fed2f7e4
......@@ -27,18 +27,18 @@
*/
static void
iteration_test(const char* file, unsigned int expected) {
iteration_test(const char *file, unsigned int expected) {
isc_result_t result;
dns_db_t *db = NULL;
unsigned int iterations;
result = dns_test_loaddb(&db, dns_dbtype_zone, "test", file);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s", file);
result = dns_nsec3_maxiterations(db, NULL, mctx, &iterations);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s", file);
ATF_CHECK_EQ(iterations, expected);
ATF_CHECK_EQ_MSG(iterations, expected, "%s", file);
dns_db_detach(&db);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment