tests: set isFinal in test_reset_in_entity

Without this, parsing may be deferred so that the suspending callback
hasn't been called when the test checks for it.
This commit is contained in:
Snild Dolkow 2023-09-26 10:13:26 +02:00
parent 2e12534145
commit bb3c171980

View file

@ -2325,7 +2325,7 @@ START_TEST(test_reset_in_entity) {
g_resumable = XML_TRUE;
XML_SetCharacterDataHandler(g_parser, clearing_aborting_character_handler);
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);
XML_GetParsingStatus(g_parser, &status);