tests: set isFinal in test_line_number_after_parse

Without this, parsing of the start or end tag may be deferred, yielding
an unexpected line number.
This commit is contained in:
Snild Dolkow 2023-09-26 10:08:58 +02:00
parent 2ed4410e07
commit 2e12534145

View file

@ -596,7 +596,7 @@ START_TEST(test_line_number_after_parse) {
"\n</tag>";
XML_Size lineno;
if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_FALSE)
if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE)
== XML_STATUS_ERROR)
xml_failure(g_parser);
lineno = XML_GetCurrentLineNumber(g_parser);