aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-11-15 08:50:04 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-11-15 08:50:04 +0000
commit93e577f1a1d78f8c2e84dc97d460b46c24c61e5a (patch)
tree2d655379cf22e7968d5d27f11ad0eb3066790997
parent4d3866cf33956c81d87710a233b166ae463863bd (diff)
downloadandroid_external_libxml2-93e577f1a1d78f8c2e84dc97d460b46c24c61e5a.tar.gz
android_external_libxml2-93e577f1a1d78f8c2e84dc97d460b46c24c61e5a.tar.bz2
android_external_libxml2-93e577f1a1d78f8c2e84dc97d460b46c24c61e5a.zip
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
-rw-r--r--ChangeLog5
-rw-r--r--runtest.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 20f978b1..64cea844 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 15 09:49:24 CET 2005 Daniel Veillard <daniel@veillard.com>
+
+ * runtest.c: Hisashi Fujinaka pointed that errors in Schemas tests
+ were not properly reported.
+
Sun Nov 13 13:42:41 CET 2005 Daniel Veillard <daniel@veillard.com>
* xmlIO.c: applied patch from Geert Jansen to remove xmlBufferClose()
diff --git a/runtest.c b/runtest.c
index 947d29ff..497a892e 100644
--- a/runtest.c
+++ b/runtest.c
@@ -2935,6 +2935,8 @@ schemasOneTest(const char *sch,
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 @@ schemasTest(const char *filename,
nb_tests++;
ret = schemasOneTest(filename, instance, result, err,
options, schemas);
- if (res != 0)
- ret = res;
+ if (ret != 0)
+ res = ret;
}
}
globfree(&globbuf);