Subject: | [PATCH] Fix failing test when libxml comes from git |
Currently libxmls built from a git pull break. This is a problem in new
releases.
not ok 3
# Test 3 got: "20706" (./t/01basic.t at line 12)
# Expected: "20706-GITv2.7.6"
# ./t/01basic.t line 12 is: ok(XML::LibXML::LIBXML_VERSION,
XML::LibXML::LIBXML_RUNTIME_VERSION);
Compiled against libxml2 version: 20706
Running libxml2 version: 20706-GITv2.7.6
This patch fixes this with the same hack found in LibXML.pm (as compared
to doing it right in the name-space polluting .xs so both hacks can be
removed).
I don't know XS enough to know how to how to set the RETVAL to only
return the stuff before the `-`:
const char *
LIBXML_RUNTIME_VERSION()
CODE:
RETVAL = xmlParserVersion;
OUTPUT:
RETVAL
--
Evan Carroll
System Lord of the Internets
http://www.evancarroll.com