diff options
author | fdrake <fdrake> | 2002-05-22 03:27:17 +0000 |
---|---|---|
committer | fdrake <fdrake> | 2002-05-22 03:27:17 +0000 |
commit | 93347017ce23a7f9c892f07cbbc1303678d5ab1f (patch) | |
tree | 7b524ffdd8fc844552122f9782b6d2d43a4286d0 /tests/runtests.c | |
parent | 1ac6b11f7f71e15882e7cf981cf8518aae1acb19 (diff) | |
download | libexpat-93347017ce23a7f9c892f07cbbc1303678d5ab1f.tar.gz |
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.
Diffstat (limited to 'tests/runtests.c')
-rw-r--r-- | tests/runtests.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtests.c b/tests/runtests.c index edbc555..0934cce 100644 --- a/tests/runtests.c +++ b/tests/runtests.c @@ -215,12 +215,14 @@ START_TEST(test_illegal_utf8) 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 |