diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-11-15 08:50:04 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-11-15 08:50:04 +0000 |
commit | 93e577f1a1d78f8c2e84dc97d460b46c24c61e5a (patch) | |
tree | 2d655379cf22e7968d5d27f11ad0eb3066790997 /runtest.c | |
parent | 4d3866cf33956c81d87710a233b166ae463863bd (diff) | |
download | libxml2-93e577f1a1d78f8c2e84dc97d460b46c24c61e5a.tar.gz |
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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |