diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-07-31 08:20:02 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-07-31 08:20:02 +0000 |
commit | 373345764b92c5959154ec233163a2a64a775863 (patch) | |
tree | 83e8d2fe706e4825f74942062c35498d8d1669bb /runxmlconf.c | |
parent | 09459bf1078992a5dea8c1bbef4919b90bc25218 (diff) | |
download | android_external_libxml2-373345764b92c5959154ec233163a2a64a775863.tar.gz android_external_libxml2-373345764b92c5959154ec233163a2a64a775863.tar.bz2 android_external_libxml2-373345764b92c5959154ec233163a2a64a775863.zip |
added a skipped list, insert rmt-ns10-035 improve 'make check' clean up
* runxmlconf.c: added a skipped list, insert rmt-ns10-035
* Makefile.am: improve 'make check'
* include/libxml/xmlerror.h parser.c: clean up namespace errors
checking and reporting, errors when a document is labelled
as UTF-16 while it is parsed as UTF-8 and no encoding was given
explicitely.
* result/errors/webdav.xml.*: some warnings are no recategorized
as Namespace errors
Daniel
svn path=/trunk/; revision=3761
Diffstat (limited to 'runxmlconf.c')
-rw-r--r-- | runxmlconf.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runxmlconf.c b/runxmlconf.c index f0f11580..f5dbe441 100644 --- a/runxmlconf.c +++ b/runxmlconf.c @@ -43,6 +43,12 @@ static int verbose = 0; #endif +const char *skipped_tests[] = { +/* http://lists.w3.org/Archives/Public/public-xml-testsuite/2008Jul/0000.html */ + "rmt-ns10-035", + NULL +}; + /************************************************************************ * * * File name and path utilities * @@ -271,12 +277,22 @@ xmlconfTestItem(xmlDocPtr doc, xmlNodePtr cur) { int options = 0; int nstest = 0; int mem, final; + int i; + testErrorsSize = 0; testErrors[0] = 0; id = xmlGetProp(cur, BAD_CAST "ID"); if (id == NULL) { test_log("test missing ID, line %ld\n", xmlGetLineNo(cur)); goto error; } + for (i = 0;skipped_tests[i] != NULL;i++) { + if (!strcmp(skipped_tests[i], (char *) id)) { + test_log("Skipping test %s from skipped list\n", (char *) id); + ret = 0; + nb_skipped++; + goto error; + } + } type = xmlGetProp(cur, BAD_CAST "TYPE"); if (type == NULL) { test_log("test %s missing TYPE\n", (char *) id); @@ -312,6 +328,7 @@ xmlconfTestItem(xmlDocPtr doc, xmlNodePtr cur) { ret = 1; nstest = 1; } else { + testErrorsSize = 0; testErrors[0] = 0; test_log("Skipping test %s for REC %s\n", (char *) id, (char *) rec); ret = 0; nb_skipped++; |