CC: | |
Subject: | libxml2-2.9.5 breaks t/48_reader_undef_warning_on_empty_str_rt106830.t |
Date: | Tue, 05 Sep 2017 02:19:23 -0400 |
To: | bug-XML-LibXML [...] rt.cpan.org |
From: | Daniel Macks <dmacks [...] netspace.org> |
The new version of libxml2 produces a test failure on my OS X 10.11 (Apple's perl-5.18.2). XML-LibXML-2.0129 reports:
# Failed test 'xml_reader is undef'
# at t/48_reader_undef_warning_on_empty_str_rt106830.t line 33.
# Looks like you failed 1 test of 2.
t/48_reader_undef_warning_on_empty_str_rt106830.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
I think the cause is a libxml2 change in the creation of the parser for a zero-length string. Previously, it short-circuited and treated this case as if a NULL were passed, returning NULL. Now, a parser is created as for any other actual string. The relevant upstream change is probably:
https://github.com/GNOME/libxml2/commit/94f6ce838c6a903ef5d0251f061a3af1816b4c50
dan
---
Daniel Macks
dmacks@netspace.org