40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
|
|
From 25749ff3dad2216dfd7596498b592747a3d9305e Mon Sep 17 00:00:00 2001
|
||
|
|
From: Snild Dolkow <snild@sony.com>
|
||
|
|
Date: Thu, 31 Aug 2023 16:14:38 +0200
|
||
|
|
Subject: [PATCH] tests: Set isFinal=1 in line/column-number-after-error tests
|
||
|
|
|
||
|
|
Reference: https://github.com/libexpat/libexpat/pull/745/commits/d4105a9080271a8d4996d2454f89be9992cb268a
|
||
|
|
Conflict: remove basic_tests.c
|
||
|
|
change runtests.c
|
||
|
|
|
||
|
|
---
|
||
|
|
tests/runtests.c | 4 ++--
|
||
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/tests/runtests.c b/tests/runtests.c
|
||
|
|
index 45ba5d59..d367271f 100644
|
||
|
|
--- a/tests/runtests.c
|
||
|
|
+++ b/tests/runtests.c
|
||
|
|
@@ -1139,7 +1139,7 @@ START_TEST(test_line_number_after_error) {
|
||
|
|
" <b>\n"
|
||
|
|
" </a>"; /* missing </b> */
|
||
|
|
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)
|
||
|
|
fail("Expected a parse error");
|
||
|
|
|
||
|
|
@@ -1158,7 +1158,7 @@ START_TEST(test_column_number_after_error) {
|
||
|
|
" <b>\n"
|
||
|
|
" </a>"; /* missing </b> */
|
||
|
|
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)
|
||
|
|
fail("Expected a parse error");
|
||
|
|
|
||
|
|
--
|
||
|
|
2.33.0
|
||
|
|
|
||
|
|
|