tests: Make suspend_after_element_declaration check for XML_StopParser success

Idea by Sebastian Andrzej Siewior
This commit is contained in:
Sebastian Pipping 2024-11-19 21:19:47 +01:00
parent f46a225dc4
commit 7b05b1420b

View file

@ -1847,7 +1847,7 @@ suspend_after_element_declaration(void *userData, const XML_Char *name,
XML_Content *model) {
UNUSED_P(name);
XML_Parser parser = (XML_Parser)userData;
XML_StopParser(parser, /*resumable*/ XML_TRUE);
assert_true(XML_StopParser(parser, /*resumable*/ XML_TRUE) == XML_STATUS_OK);
XML_FreeContentModel(parser, model);
}