From 1b728cf8376a166d21eae818dfa66c55b6209bc4 Mon Sep 17 00:00:00 2001 From: Snild Dolkow Date: Thu, 24 Aug 2023 14:10:58 +0200 Subject: [PATCH] tests: Set isFinal in test_column_number_after_parse Reference: https://github.com/libexpat/libexpat/pull/745/commits/2cee1061e2fec10633c3f02a961dabf95e85910a Conflict: remove basic_tests.c change runtests.c Without this, parsing of the end tag may be deferred, yielding an unexpected column number. --- tests/runtests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.c b/tests/runtests.c index 8f1d11f0..9931d85e 100644 --- a/tests/runtests.c +++ b/tests/runtests.c @@ -1071,7 +1071,7 @@ START_TEST(test_column_number_after_parse) { const char *text = ""; XML_Size colno; - 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); colno = XML_GetCurrentColumnNumber(g_parser); -- 2.33.0