mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 10:39:59 -04:00
only call dns_test_begin once
(cherry picked from commit f13c7b01746a07bef87a386ceff93ccb2a7488a9)
This commit is contained in:
parent
fed2f7e4c1
commit
56c6fc0dac
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue