[Expat-checkins] expat/tests runtests.c,1.18,1.19
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue May 21 20:28:02 2002
Update of /cvsroot/expat/expat/tests
In directory usw-pr-cvs1:/tmp/cvs-serv7572
Modified Files:
runtests.c
Log Message:
Fix the regression test for SF bug #477667. This now fails, but accurately
tests the reported bug.
It should also serve as increased motivation for me to get it fixed
before the next release.
Index: runtests.c
===================================================================
RCS file: /cvsroot/expat/expat/tests/runtests.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- runtests.c 4 May 2002 21:47:46 -0000 1.18
+++ runtests.c 22 May 2002 03:27:17 -0000 1.19
@@ -215,12 +215,14 @@
sprintf(text, "<e>%ccd</e>", i);
if (XML_Parse(parser, text, strlen(text), 1)) {
sprintf(text,
- "expected token error for '%c'(ordinal %d) in UTF-8 text",
+ "expected token error for '%c' (ordinal %d) in UTF-8 text",
i, i);
fail(text);
}
else if (XML_GetErrorCode(parser) != XML_ERROR_INVALID_TOKEN)
xml_failure(parser);
+ /* Reset the parser since we use the same parser repeatedly. */
+ XML_ParserReset(parser, NULL);
}
}
END_TEST