Add non-empty blank line test.

This commit is contained in:
Mark Andrews 2000-07-09 12:48:43 +00:00
parent ba6ea42c36
commit ddc12c6129
3 changed files with 34 additions and 1 deletions

View file

@ -0,0 +1,12 @@
#
# test data for dns_master_load test 9
#
# format is:
# masterfile origin class expected_result
# where
# masterfile name is the name of a file containing master data
# origin is the origin
# class is the zone's class
# expected_result is a text representation of a dns_result_t
#
master10.data test in ISC_R_SUCCESS

View file

@ -0,0 +1,7 @@
;
; the following black line contains spaces
;
@ 300 IN A 10.0.0.1
;
;

View file

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: t_master.c,v 1.24 2000/07/03 03:08:22 marka Exp $ */
/* $Id: t_master.c,v 1.25 2000/07/09 12:48:43 marka Exp $ */
#include <config.h>
@ -289,6 +289,19 @@ t9() {
t_result(result);
}
static const char *a10 =
"dns_master_loadfile non-empty blank lines";
static void
t10() {
int result;
t_assert("dns_master_loadfile", 10, T_REQUIRED, a10);
result = test_master_x("dns_master_load_10_data");
t_result(result);
}
testspec_t T_testlist[] = {
{ t1, "ISC_R_SUCCESS" },
{ t2, "ISC_R_UNEXPECTEDEND" },
@ -299,6 +312,7 @@ testspec_t T_testlist[] = {
{ t7, "KEY RR 2" },
{ t8, "$INCLUDE" },
{ t9, "$INCLUDE w/ DNS_BADCLASS" },
{ t10, "non empty blank lines" },
{ NULL, NULL }
};