GNOME Bugzilla – Bug 760739
REGRESSION (ce0b0d0d): Tests fail after commit: "Do not print error context when there is none"
Last modified: 2016-05-03 21:55:28 UTC
Test results changed after commit ce0b0d0d81fdbb5f722a890432b52d363e4de57b: https://git.gnome.org/browse/libxml2/commit/?id=ce0b0d0d81fdbb5f722a890432b52d363e4de57b The new test failures look like this: ## Error cases regression tests +754947.xml result +6,7d5 < <d><![CDATA[0000000000000<EE>]]> < ^ +attr1.xml result +2,3d1 < < ^ +attr2.xml result +2,3d1 < < ^ +name.xml result +2,3d1 < < ^ +name2.xml result +2,3d1 < < ^ ## Error cases stream regression tests +attr1.xml result +2,3d1 < < ^ 5,6d2 < < ^ 8,9d3 < < ^ +attr2.xml result +2,3d1 < < ^ 5,6d2 < < ^ 8,9d3 < < ^ +name.xml result +2,3d1 < < ^ +name2.xml result +2,3d1 < < ^ 5,6d2 < < ^ 8,9d3 < < ^
Note that this actually looks like a progression (and the intent of commit ce0b0d0d81fdbb5f722a890432b52d363e4de57b) since blank error messages have been removed from the expected output.
Created attachment 319204 [details] [review] Patch v1 Update test results after commit ce0b0d0d (Do not print error context when there is none).
(In reply to David Kilzer from comment #2) > Created attachment 319204 [details] [review] [review] > Patch v1 > > Update test results after commit ce0b0d0d (Do not print error context when > there is none). Strangely, this patch causes "make check" to fail. :(
This sounds like similar issue in Red Hat bugzilla. Does the patch proposed there help? https://bugzilla.redhat.com/show_bug.cgi?id=1286692
(In reply to Pavel Raiskup from comment #4) > This sounds like similar issue in Red Hat bugzilla. Does the patch proposed > there help? > https://bugzilla.redhat.com/show_bug.cgi?id=1286692 Yes! Your patch fixes the extra output during "make check" that I filed this bug about, and all the other tests still pass: https://bugzilla.redhat.com/attachment.cgi?id=1100884 I think that's the correct fix here. Could you post your patch for review on this bug?
Comment on attachment 319204 [details] [review] Patch v1 Changing the expected output is not the correct fix. This is the correct way to fix this: https://bugzilla.redhat.com/attachment.cgi?id=1100884
Created attachment 320482 [details] [review] error.c: *input->cur == 0 does not mean no error
This was fixed in c4184ba217009798504ca25f011ed7899ac1f65f: <https://git.gnome.org/browse/libxml2/commit/?id=c4184ba217009798504ca25f011ed7899ac1f65f>