Hisashi Fujinaka pointed that errors in Schemas tests were not properly

* runtest.c: Hisashi Fujinaka pointed that errors in Schemas tests
  were not properly reported.
Daniel
diff --git a/runtest.c b/runtest.c
index 947d29f..497a892 100644
--- a/runtest.c
+++ b/runtest.c
@@ -2935,6 +2935,8 @@
 	if (compareFileMem(err, testErrors, testErrorsSize)) {
 	    fprintf(stderr, "Error for %s on %s failed\n", filename, sch);
 	    ret = 1;
+	} else {
+	    ret = 0;
 	}
     }
 
@@ -3033,8 +3035,8 @@
 	    nb_tests++;
 	    ret = schemasOneTest(filename, instance, result, err,
 	                         options, schemas);
-	    if (res != 0)
-		ret = res;
+	    if (ret != 0)
+		res = ret;
 	}
     }
     globfree(&globbuf);