/*
* Copyright (C) 2016, 2018 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <config.h>
#include <atf-c.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <isccfg/namedconf.h>
#define CHECK(r) \
do { \
result = (r); \
if (result != ISC_R_SUCCESS) \
goto cleanup; \
} while (0)
{ "", 0 },
{ "client", 0 },
{ "network", 0 },
{ "update", 0 },
{ "queries", 0 },
{ "unmatched", 0 },
{ "update-security", 0 },
{ "query-errors", 0 },
{ NULL, 0 }
};
static void
cleanup() {
}
static isc_result_t
setup() {
&destination, 0));
return (ISC_R_SUCCESS);
cleanup();
return (result);
}
}
setup();
/* Parse with default line numbering */
&cfg_type_namedconf, &c1);
/* Parse with changed line number */
&cfg_type_namedconf, &c2);
cleanup();
}
}
unsigned int idx;
ATF_CHECK_EQ(idx, 0);
}
}
unsigned int idx;
do {
} else {
ATF_CHECK_EQ(idx, 0);
}
}
/*
* Main
*/
return (atf_no_error());
}