Re: [xml] runtest mystery bug: name2.xml error case regression test



Daniel Richard G. wrote:
On Thu, 13 Sep 2012, Daniel Veillard wrote:
[SNIP]

Before  2.9.0 to be released for a shot period test report errors in name2 .
Mystery that test report error only with gcc 4.4 cross compiler for mingw host and all is fine with 3.4.5 and 4.6 versions of compiler.



This is all it is:

--- a/include/libxml/parserInternals.h
+++ b/include/libxml/parserInternals.h
@@ -86,7 +86,7 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
  * The parser tries to always have that amount of input ready.
  * One of the point is providing context when reporting errors.
  */
-#define INPUT_CHUNK    250
+#define INPUT_CHUNK    250000

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

The runtest.c patch is optional. With the above, runtest breaks on FC17.

Probably test is in error since how exception message is different.

I wrote third test case in same area. Please see error file in attachment "0001-new-error-regression-tests-name3.patch". The file show another exception mix between existing one.

Linux realloc() man page point that returned value(pointer) may differ from input. If for same reasons pointer is same libxml will raise "third" message as result regression test will report error in name2 test.

I think that this is issue only with tests.

Roumen

Attachment: 0001-new-error-regression-tests-name3.patch
Description: Text Data



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