aboutsummaryrefslogtreecommitdiffstats
path: root/runtest.c
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 /runtest.c
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
Diffstat (limited to 'runtest.c')
-rw-r--r--runtest.c6
1 files changed, 4 insertions, 2 deletions
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);