From c32c49be6738551acdd5bbd94360e9973c921190 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Wed, 9 Jul 2008 15:43:00 +0000 Subject: Make the test harness ignore #document-fragment sections instead of choking on them. svn path=/trunk/hubbub/; revision=4544 --- test/tree2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/tree2.c') diff --git a/test/tree2.c b/test/tree2.c index cee4f3d..2e4304e 100644 --- a/test/tree2.c +++ b/test/tree2.c @@ -224,7 +224,10 @@ int main(int argc, char **argv) break; case READING_ERRORS: - assert(strcmp(line, "#document-fragment\n") != 0); + if (strcmp(line, "#document-fragment\n") == 0) { + hubbub_parser_destroy(parser); + state = EXPECT_DATA; + } if (strcmp(line, "#document\n") == 0) state = READING_TREE; -- cgit v1.2.3