diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-07-04 15:45:10 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-07-04 15:45:10 +0000 |
commit | 9083778967e514c6c786c7feabd80f3d339d8b3d (patch) | |
tree | c0ec39a239f44fd71126abb384a27dbf1d41a501 /runsuite.c | |
parent | 4ac5f9af14c5887b0b0e57da415574a550a464bc (diff) | |
download | android_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.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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", |