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.
diff --git a/runsuite.c b/runsuite.c
index 280c088..debf456 100644
--- a/runsuite.c
+++ b/runsuite.c
@@ -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 @@
 	}
 	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++;