aboutsummaryrefslogtreecommitdiffstats
path: root/runsuite.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-07-04 15:45:10 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-07-04 15:45:10 +0000
commit9083778967e514c6c786c7feabd80f3d339d8b3d (patch)
treec0ec39a239f44fd71126abb384a27dbf1d41a501 /runsuite.c
parent4ac5f9af14c5887b0b0e57da415574a550a464bc (diff)
downloadandroid_external_libxml2-9083778967e514c6c786c7feabd80f3d339d8b3d.tar.gz
android_external_libxml2-9083778967e514c6c786c7feabd80f3d339d8b3d.tar.bz2
android_external_libxml2-9083778967e514c6c786c7feabd80f3d339d8b3d.zip
first stb at unimplemnted detection fixing Windows code Daniel
* runsuite.c: first stb at unimplemnted detection * runtest.c: fixing Windows code Daniel
Diffstat (limited to 'runsuite.c')
-rw-r--r--runsuite.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/runsuite.c b/runsuite.c
index c7dab7a8..deef1297 100644
--- a/runsuite.c
+++ b/runsuite.c
@@ -71,6 +71,7 @@ static int nb_tests = 0;
static int nb_errors = 0;
static int nb_internals = 0;
static int nb_schematas = 0;
+static int nb_unimplemented = 0;
static int nb_leaks = 0;
static long libxmlMemoryAllocatedBase = 0;
static int extraMemoryFromResolver = 0;
@@ -908,6 +909,14 @@ xstcTestGroup(xmlNodePtr cur, const char *base) {
if (schemas == NULL) {
test_log("valid schemas %s failed to parse\n",
path);
+ ret = 1;
+ nb_errors++;
+ }
+ if ((ret == 0) && (strstr(testErrors, "nimplemented") != NULL)) {
+ test_log("valid schemas %s hit an unimplemented block\n",
+ path);
+ ret = 1;
+ nb_unimplemented++;
nb_errors++;
}
instance = getNext(cur, "./ts:instanceTest[1]");
@@ -929,6 +938,14 @@ xstcTestGroup(xmlNodePtr cur, const char *base) {
test_log("Failed to detect error in schemas %s\n",
path);
nb_errors++;
+ ret = 1;
+ }
+ if ((ret == 0) && (strstr(testErrors, "nimplemented") != NULL)) {
+ nb_unimplemented++;
+ test_log("invalid schemas %s hit an unimplemented block\n",
+ path);
+ ret = 1;
+ nb_errors++;
}
} else {
test_log("testGroup line %ld misses unexpected validity value%s\n",