From: Fred L. Drake, Jr. Date: Wed, 22 May 2002 03:27:17 +0000 (+0000) Subject: Fix the regression test for SF bug #477667. This now fails, but accurately X-Git-Tag: R_1_95_3~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6197055826f25375b3792f7f94c6c3a9a569a62c;p=libexpat 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. --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index edbc555f..0934ccec 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -215,12 +215,14 @@ START_TEST(test_illegal_utf8) sprintf(text, "%ccd", 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