1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

tests: Fix build --without-output

This commit is contained in:
Nick Wellnhofer
2025-06-30 16:23:03 +02:00
parent 9553695d17
commit c34742f301
4 changed files with 24 additions and 13 deletions

View File

@@ -621,6 +621,7 @@ testHtmlIds(void) {
#define MHE "meta http-equiv=\"Content-Type\""
#ifdef LIBXML_OUTPUT_ENABLED
static int
testHtmlInsertMetaEncoding(void) {
/* We currently require a head element to be present. */
@@ -741,6 +742,7 @@ testHtmlUpdateMetaEncoding(void) {
xmlFreeDoc(doc);
return err;
}
#endif /* LIBXML_OUTPUT_ENABLED */
#ifdef LIBXML_PUSH_ENABLED
static int
@@ -806,6 +808,7 @@ testReaderEncoding(void) {
return err;
}
#ifdef LIBXML_OUTPUT_ENABLED
static int
testReaderContent(void) {
xmlTextReader *reader;
@@ -840,6 +843,7 @@ testReaderContent(void) {
xmlFreeTextReader(reader);
return err;
}
#endif /* LIBXML_OUTPUT_ENABLED */
static int
testReaderNode(xmlTextReader *reader) {
@@ -1424,15 +1428,19 @@ main(void) {
#endif
#ifdef LIBXML_HTML_ENABLED
err |= testHtmlIds();
#ifdef LIBXML_OUTPUT_ENABLED
err |= testHtmlInsertMetaEncoding();
err |= testHtmlUpdateMetaEncoding();
#endif
#ifdef LIBXML_PUSH_ENABLED
err |= testHtmlPushWithEncoding();
#endif
#endif
#ifdef LIBXML_READER_ENABLED
err |= testReaderEncoding();
#ifdef LIBXML_OUTPUT_ENABLED
err |= testReaderContent();
#endif
err |= testReader();
#ifdef LIBXML_XINCLUDE_ENABLED
err |= testReaderXIncludeError();