aboutsummaryrefslogtreecommitdiffstats
path: root/runtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtest.c')
-rw-r--r--runtest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtest.c b/runtest.c
index 897cb9b1..dff53c3a 100644
--- a/runtest.c
+++ b/runtest.c
@@ -2926,14 +2926,13 @@ schemasOneTest(const char *sch,
unlink(temp);
free(temp);
- if (err != NULL) {
+ if ((ret != 0) && (err != NULL)) {
if (compareFileMem(err, testErrors, testErrorsSize)) {
fprintf(stderr, "Error for %s on %s failed\n", filename, sch);
ret = 1;
}
}
-
xmlSchemaFreeValidCtxt(ctxt);
xmlFreeDoc(doc);
return(ret);