Commit dcac4fce authored by Kasimier T. Buchcik's avatar Kasimier T. Buchcik

Changed to instantly mark instance-tests as failed if the corresponding

* runsuite.c: Changed to instantly mark instance-tests as
  failed if the corresponding schema was invalid. This
  reflects the side of the Python code for the XML Schema test
  suite. We now get the same number of failed tests on both
  sides.
parent bdadaedd
Wed Dec 7 14:59:01 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
Fri Dec 9 11:01:16 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.ne>
* runsuite.c: Changed to instantly mark instance-tests as
failed if the corresponding schema was invalid. This
reflects the side of the Python code for the XML Schema test
suite. We now get the same number of failed tests on both
sides.
Wed Dec 7 14:59:01 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.ne>
* xmlreader.c include/libxml/xmlreader.h: Added
xmlTextReaderSchemaValidateCtxt() to the API.
......
......@@ -36,11 +36,16 @@
#define LOGFILE "runsuite.log"
static FILE *logfile = NULL;
static int verbose = 0;
#if defined(_WIN32) && !defined(__CYGWIN__)
#define vsnprintf _vsnprintf
#define snprintf _snprintf
static int verbose = 0;
#if defined(_WIN32) && !defined(__CYGWIN__)
#define vsnprintf _vsnprintf
#define snprintf _snprintf
#endif
/************************************************************************
......@@ -936,9 +941,17 @@ xstcTestGroup(xmlNodePtr cur, const char *base) {
}
instance = getNext(cur, "./ts:instanceTest[1]");
while (instance != NULL) {
xstcTestInstance(instance, schemas, path, base);
if (schemas != NULL) {
xstcTestInstance(instance, schemas, path, base);
} else {
/*
* We'll automatically mark the instances as failed
* if the schema was broken.
*/
nb_errors++;
}
instance = getNext(instance,
"following-sibling::ts:instanceTest[1]");
"following-sibling::ts:instanceTest[1]");
}
} else if (xmlStrEqual(validity, BAD_CAST "invalid")) {
nb_schematas++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment