aboutsummaryrefslogtreecommitdiffstats
path: root/runxmlconf.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-09-01 13:08:57 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-09-01 13:08:57 +0000
commitda3fee406da96c344d7b5f4e0631faee74f7e11d (patch)
treeeb4ae2773cbdbd1ead5b13eb997fc204b93303d6 /runxmlconf.c
parent1572425c2774b3fef6af062b87351a0e42c3e172 (diff)
downloadandroid_external_libxml2-da3fee406da96c344d7b5f4e0631faee74f7e11d.tar.gz
android_external_libxml2-da3fee406da96c344d7b5f4e0631faee74f7e11d.tar.bz2
android_external_libxml2-da3fee406da96c344d7b5f4e0631faee74f7e11d.zip
Borland C fix from Moritz Both regenerate, workaround a problem for buffer
* trionan.c: Borland C fix from Moritz Both * testapi.c: regenerate, workaround a problem for buffer testing * xmlIO.c HTMLtree.c: new internal entry point to hide even better xmlAllocOutputBufferInternal * tree.c: harden the code around buffer allocation schemes * parser.c: restore the warning when namespace names are not absolute URIs * runxmlconf.c: continue regression tests if we get the expected number of errors * Makefile.am: run the python tests on make check * xmlsave.c: handle the HTML documents and trees * python/libxml.c: convert python serialization to the xmlSave APIs and avoid some horrible hacks Daniel svn path=/trunk/; revision=3790
Diffstat (limited to 'runxmlconf.c')
-rw-r--r--runxmlconf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/runxmlconf.c b/runxmlconf.c
index 0529058e..8ef7f747 100644
--- a/runxmlconf.c
+++ b/runxmlconf.c
@@ -33,7 +33,7 @@
static FILE *logfile = NULL;
static int verbose = 0;
-
+#define NB_EXPECTED_ERRORS 15
#if defined(_WIN32) && !defined(__CYGWIN__)
@@ -588,10 +588,14 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
printf("Total %d tests, no errors\n",
nb_tests);
} else {
- ret = 1;
+ ret = 1;
printf("Total %d tests, %d errors, %d leaks\n",
nb_tests, nb_errors, nb_leaks);
printf("See %s for detailed output\n", LOGFILE);
+ if ((nb_leaks == 0) && (nb_errors == NB_EXPECTED_ERRORS)) {
+ printf("%d errors were expected\n", nb_errors);
+ ret = 0;
+ }
}
xmlXPathFreeContext(ctxtXPath);
xmlCleanupParser();