summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-07-09 15:43:00 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-07-09 15:43:00 +0000
commitc32c49be6738551acdd5bbd94360e9973c921190 (patch)
treeacb4550e14128285e519b828e3181e200bc3cd35
parent6b9d7b0e859aa06b0f39e716f2576a19e025f955 (diff)
downloadlibhubbub-c32c49be6738551acdd5bbd94360e9973c921190.tar.gz
libhubbub-c32c49be6738551acdd5bbd94360e9973c921190.tar.bz2
Make the test harness ignore #document-fragment sections instead of choking on them.
svn path=/trunk/hubbub/; revision=4544
-rw-r--r--test/tree2.c5
1 files changed, 4 insertions, 1 deletions
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;