diff options
author | Mike Hommey <glandium@debian.org> | 2009-03-01 10:54:34 +0100 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2009-03-01 10:54:34 +0100 |
commit | 0c1d871e4c5e46a2945cccb2ce765f9be2fe01fb (patch) | |
tree | 982382b30eb118c65e1a06b25757dac5c3c69b8d /runxmlconf.c | |
parent | d03a853bb0370d89552eceee59df1746da4a37f8 (diff) | |
download | libxml2-upstream/2.7.1.dfsg.tar.gz |
Import upstream version 2.7.1upstream/2.7.1.dfsg
Diffstat (limited to 'runxmlconf.c')
-rw-r--r-- | runxmlconf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runxmlconf.c b/runxmlconf.c index 0529058..8ef7f74 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(); |