From 0c1d871e4c5e46a2945cccb2ce765f9be2fe01fb Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Sun, 1 Mar 2009 10:54:34 +0100 Subject: Import upstream version 2.7.1 --- runxmlconf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'runxmlconf.c') 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(); -- cgit v1.2.3