Subject: | t/46err_column.t broken on centos/redhat 4 |
t/46err_column.t is broken on centos/redhat 4
On this system, libxml is as follows:
libxml2-devel-2.6.16-12.8
libxml2-2.6.16-12.8
I'm not sure, but I'm guessing that this version of the library causes $@ to be a string not an object. I get this in $@ during that test (diags added to show $@):
# :1: parser error : attributes construct error
# " attr9="value2" attr10="value2" attr11="value2" attr12="value2" attr13="value2"
# ^
# :1: parser error : Couldn't find end of Start Tag foo line 1
# " attr9="value2" attr10="value2" attr11="value2" attr12="value2" attr13="value2"
# ^
# :1: parser error : Extra content at the end of the document
# " attr9="value2" attr10="value2" attr11="value2" attr12="value2" attr13="value2"
# ^ at t/46err_column.t line 17
Can't call method "column" on an undefined value at t/46err_column.t line 24.
This could possibly indicate some unexpected exit in the xs that isn't being handled. If this is just an issue with an old LibXML, could we first test that $@ is a object
before we do this test?
SKIP: {
skip('parse_string returned a string not an XML::LibXML::Error object', 1) if(!ref $@);
is ($@->column(), 203, "Column is OK.");
}