Skip to content

Commit af6e146

Browse files
committed
- Pad test cases.
1 parent 4606c49 commit af6e146

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/syntax.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ void contiguous_escaped_start(void** state)
10761076
{
10771077
/* Check that the fallback parser handles a scan of a contiguous segment
10781078
* that starts with is_escaped. */
1079-
char* zone =
1079+
char* zone = PAD(
10801080
"$ORIGIN example.\n"
10811081
"$TTL 3600\n"
10821082
"@ IN SOA ns postmaster.mail 2147483647 3600 900 1814400 900\n"
@@ -1098,7 +1098,7 @@ void contiguous_escaped_start(void** state)
10981098
"0000005 IN TYPE994 \\# 15 303132333435363738396162636465\n"
10991099
"0000006 IN A 192.0.2.6\n"
11001100
"0000006 IN TYPE994 \\# 16 30313233343536373839616263646566\n"
1101-
;
1101+
);
11021102
static uint8_t origin[] = { 0 };
11031103
zone_parser_t parser;
11041104
zone_name_buffer_t name;
@@ -1125,7 +1125,7 @@ void quoted_escaped_start(void** state)
11251125
{
11261126
/* Check that the fallback parser handles a scan of a quoted segment
11271127
* that starts with is_escaped. */
1128-
char* zone =
1128+
char* zone = PAD(
11291129
"$ORIGIN example.\n"
11301130
"$TTL 3600\n"
11311131
"@ IN SOA ns postmaster.mail 2147483647 3600 900 1814400 900\n"
@@ -1147,7 +1147,7 @@ void quoted_escaped_start(void** state)
11471147
"0000005 IN TYPE994 \\# 15 303132333435363738396162636465\n"
11481148
"0000006 IN A 192.0.2.6\n"
11491149
"0000006 IN TXT \"aaa\\#\"\n"
1150-
;
1150+
);
11511151
static uint8_t origin[] = { 0 };
11521152
zone_parser_t parser;
11531153
zone_name_buffer_t name;

0 commit comments

Comments
 (0)