diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-07-03 22:48:50 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-07-03 22:48:50 +0000 |
commit | 39e5c89016db91821b11262b5d19d7d7926a89c6 (patch) | |
tree | 25efd024c1599b25ce48ff199f5125a7671b878b /runtest.c | |
parent | 7e33dbaa0e5cf07dea6215a273c54e148b681051 (diff) | |
download | android_external_libxml2-39e5c89016db91821b11262b5d19d7d7926a89c6.tar.gz android_external_libxml2-39e5c89016db91821b11262b5d19d7d7926a89c6.tar.bz2 android_external_libxml2-39e5c89016db91821b11262b5d19d7d7926a89c6.zip |
fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing
* testapi.c tree.c: fixing a leak detected by testapi in
xmlDOMWrapAdoptNode, and fixing another side effect in testapi
seems to pass tests fine now.
* include/libxml/parser.h parser.c: xmlStopParser() is no more limited
to push mode
* error.c: remove a warning
* runtest.c xmllint.c: avoid compilation errors if only some parts
of the library are compiled in.
Daniel
Diffstat (limited to 'runtest.c')
-rw-r--r-- | runtest.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -2122,6 +2122,7 @@ streamMemParseTest(const char *filename, const char *result, const char *err, #endif #ifdef LIBXML_XPATH_ENABLED +#ifdef LIBXML_DEBUG_ENABLED /************************************************************************ * * * XPath and XPointer based tests * @@ -2411,6 +2412,7 @@ xmlidDocTest(const char *filename, return(res); } +#endif /* LIBXML_DEBUG_ENABLED */ #endif /* XPATH */ /************************************************************************ * * @@ -2909,6 +2911,7 @@ rngTest(const char *filename, return(res); } +#ifdef LIBXML_READER_ENABLED /** * rngStreamTest: * @filename: the schemas file @@ -2999,11 +3002,12 @@ rngStreamTest(const char *filename, return(res); } - +#endif /* READER */ #endif #ifdef LIBXML_PATTERN_ENABLED +#ifdef LIBXML_READER_ENABLED /************************************************************************ * * * Patterns tests * @@ -3212,7 +3216,8 @@ patternTest(const char *filename, free(temp); return(ret); } -#endif +#endif /* READER */ +#endif /* PATTERN */ #ifdef LIBXML_C14N_ENABLED /************************************************************************ * * @@ -3890,6 +3895,7 @@ testDesc testDescriptions[] = { NULL, XML_PARSE_XINCLUDE | XML_PARSE_NOXINCNODE }, #endif #ifdef LIBXML_XPATH_ENABLED +#ifdef LIBXML_DEBUG_ENABLED { "XPath expressions regression tests" , xpathExprTest, "./test/XPath/expr/*", "result/XPath/expr/", "", NULL, 0 }, @@ -3905,6 +3911,7 @@ testDesc testDescriptions[] = { xmlidDocTest, "./test/xmlid/*", "result/xmlid/", "", ".err", 0 }, #endif +#endif { "URI parsing tests" , uriParseTest, "./test/URI/*.uri", "result/URI/", "", NULL, 0 }, @@ -3918,15 +3925,19 @@ testDesc testDescriptions[] = { { "Relax-NG regression tests" , rngTest, "./test/relaxng/*.rng", NULL, NULL, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT }, +#ifdef LIBXML_READER_ENABLED { "Relax-NG streaming regression tests" , rngStreamTest, "./test/relaxng/*.rng", NULL, NULL, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT }, #endif +#endif #ifdef LIBXML_PATTERN_ENABLED +#ifdef LIBXML_READER_ENABLED { "Pattern regression tests" , patternTest, "./test/pattern/*.pat", "result/pattern/", NULL, NULL, 0 }, #endif +#endif #ifdef LIBXML_C14N_ENABLED { "C14N with comments regression tests" , c14nWithCommentTest, "./test/c14n/with-comments/*.xml", NULL, NULL, NULL, |