[xml] Error in runtest.c?



I've noticed that there are schema errors that don't get counted in the
totals. Is this on purpose or is the following diff necessary?

Thanks.

--
Hisashi T Fujinaka - htodd twofifty com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


--- runtest.c.orig      2005-11-14 15:55:48.557248536 -0800
+++ runtest.c   2005-11-14 16:01:11.300184152 -0800
@@ -3027,7 +3027,7 @@
        if (schemas == NULL) {
        } else {
            nb_tests++;
-           ret = schemasOneTest(filename, instance, result, err,
+           res = schemasOneTest(filename, instance, result, err,
                                 options, schemas);
            if (res != 0)
                ret = res;
@@ -3036,7 +3036,7 @@
     globfree(&globbuf);
     xmlSchemaFree(schemas);

-    return(res);
+    return(ret);
 }

 /************************************************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]